[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: log level to see details of MOD operations



> On Mon, 13 Apr 2009, Scott Koranda wrote:
>
>> I want to set 'loglevel' in slapd.conf so that I will
>> be able to see the details of what a client is
>> sending to slapd when it modifies entries for a dn.
>> Specifically I would like to see which attributes the
>> client is requesting to modify for the dn and the values it is
>> sending for those attributes.
>>
>> What value for 'loglevel' results in the least
>> verbose logging but would still show me that
>> information?
>
>
> modify.c:				Statslog( LDAP_DEBUG_STATS, "%s MOD attr=%s\n",
>
> so loglevel stats.

Thanks for the quick response.

I changed 'loglevel' to 'stats' and restarted slapd
and then made a test modification using the
ldapmodify command line tool. Specifically I modified
the 'mail' attribute for 

dn: employeeNumber=882,ou=people,dc=myorg,dc=org

and then I checked using ldapsearch that the
attribute was indeed modified.

I see this in the log file for the modification:

Apr 13 18:03:05 oregano slapd[3803]: conn=10383 op=1 MOD dn="employeeNumber=882,ou=people,dc=myorg,dc=org"
Apr 13 18:03:05 oregano slapd[3803]: conn=10383 op=1 MOD attr=mail
Apr 13 18:03:06 oregano slapd[3803]: conn=10383 op=1 RESULT tag=103 err=0 text=
Apr 13 18:03:06 oregano slapd[3803]: conn=10383 op=2 UNBIND
Apr 13 18:03:06 oregano slapd[3803]: conn=10383 fd=17 closed

So I can see that a modification is being made to the
attribute 'mail' but I cannot see what modification
the client is sending in.

Is there a loglevel that will show me the value being
sent by the client for the attribute that is being
modified?

Thanks,

Scott