johnprince1980 has asked for the wisdom of the Perl Monks concerning the following question:
[04/Jun/2013:13:06:13 -0600] conn=13570 op=14 msgId=13 - BIND dn="uid= +xyz123,ou=People,o=xyz.com" method=128 version=3 [04/Jun/2013:15:06:13 -0600] conn=13570 op=14 msgId=15 - RESULT err=0 +tag=101 nentries=48030 etime=139 SRCH=Q
Basically, we need to find any user ( ie uid=xyz123), getting "SRCH=Q" in a particular connection have more than three occurrence within an hour. If you see the logs, they are related with "conn=13570". In brief, here is the logic : - Get the "SRCH=Q" occurence. - Get the associated conn #, go back and get the bind user. - Carrying bind user, search for "SRCH=Q" occurrence, if > 3, run add group command.
Thanks, JPrince
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pull users with multiple search
by smls (Friar) on Jun 07, 2013 at 06:31 UTC | |
|
Re: Pull users with multiple search
by hdb (Monsignor) on Jun 07, 2013 at 06:46 UTC | |
|
Re: Pull users with multiple search
by Anonymous Monk on Jun 07, 2013 at 07:22 UTC | |
by johnprince1980 (Initiate) on Jun 07, 2013 at 10:15 UTC | |
by hdb (Monsignor) on Jun 07, 2013 at 11:03 UTC | |
by johnprince1980 (Initiate) on Jun 10, 2013 at 05:42 UTC | |
by johnprince1980 (Initiate) on Jun 10, 2013 at 19:42 UTC |