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

Re: outlook and openldap (syslog)



So,

I added the following lines in my /etc/syslog.conf file, re-initialised syslogd and restarted slapd.

local4.err                                      /var/log/ldap
local4.debug                                    /var/log/ldap
local4.notice                                   /var/log/ldap
local4.alert                                    /var/log/ldap

Then did a simple search from Outlook with the query "Name = *" and get the following in /var/log/ldap :

...
Dec 13 10:56:25 netra slapd[29039]: [ID 119476 local4.debug] begin get_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 108507 local4.debug] OR
Dec 13 10:56:25 netra slapd[29039]: [ID 679408 local4.debug] begin get_filter_list
Dec 13 10:56:25 netra slapd[29039]: [ID 119476 local4.debug] begin get_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 496837 local4.debug] SUBSTRINGS
Dec 13 10:56:25 netra slapd[29039]: [ID 680314 local4.debug] begin get_substring_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 513108 local4.debug]   INITIAL
Dec 13 10:56:25 netra slapd[29039]: [ID 860182 local4.debug] end get_substring_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 274773 local4.debug] end get_filter 0
Dec 13 10:56:25 netra slapd[29039]: [ID 119476 local4.debug] begin get_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 496837 local4.debug] SUBSTRINGS
Dec 13 10:56:25 netra slapd[29039]: [ID 680314 local4.debug] begin get_substring_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 513108 local4.debug]   INITIAL
Dec 13 10:56:25 netra slapd[29039]: [ID 860182 local4.debug] end get_substring_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 274773 local4.debug] end get_filter 0
Dec 13 10:56:25 netra slapd[29039]: [ID 451697 local4.debug] end get_filter_list
Dec 13 10:56:25 netra slapd[29039]: [ID 274773 local4.debug] end get_filter 0
Dec 13 10:56:25 netra slapd[29039]: [ID 823432 local4.debug]    AND
Dec 13 10:56:25 netra slapd[29039]: [ID 137717 local4.debug]    DN SUBTREE
Dec 13 10:56:25 netra slapd[29039]: [ID 108507 local4.debug]    OR
Dec 13 10:56:25 netra slapd[29039]: [ID 694368 local4.debug]    EQUALITY
Dec 13 10:56:25 netra last message repeated 1 time
Dec 13 10:56:25 netra slapd[29039]: [ID 108507 local4.debug]    OR
Dec 13 10:56:25 netra slapd[29039]: [ID 496837 local4.debug]    SUBSTRINGS
Dec 13 10:56:25 netra last message repeated 1 time
Dec 13 10:56:25 netra slapd[29039]: [ID 344839 local4.debug] => test_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 958614 local4.debug]     OR
Dec 13 10:56:25 netra slapd[29039]: [ID 206274 local4.debug] => test_filter_or
Dec 13 10:56:25 netra slapd[29039]: [ID 344839 local4.debug] => test_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 138056 local4.debug]     SUBSTRINGS
Dec 13 10:56:25 netra slapd[29039]: [ID 848268 local4.debug] begin test_substrings_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 908887 local4.debug] end test_substrings_filter 1
Dec 13 10:56:25 netra slapd[29039]: [ID 791166 local4.debug] <= test_filter 5
Dec 13 10:56:25 netra slapd[29039]: [ID 344839 local4.debug] => test_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 138056 local4.debug]     SUBSTRINGS
Dec 13 10:56:25 netra slapd[29039]: [ID 848268 local4.debug] begin test_substrings_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 908887 local4.debug] end test_substrings_filter 1
Dec 13 10:56:25 netra slapd[29039]: [ID 791166 local4.debug] <= test_filter 5
Dec 13 10:56:25 netra slapd[29039]: [ID 238222 local4.debug] <= test_filter_or 5
Dec 13 10:56:25 netra slapd[29039]: [ID 791166 local4.debug] <= test_filter 5
Dec 13 10:56:25 netra slapd[29039]: [ID 344839 local4.debug] => test_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 958614 local4.debug]     OR
Dec 13 10:56:25 netra slapd[29039]: [ID 206274 local4.debug] => test_filter_or
Dec 13 10:56:25 netra slapd[29039]: [ID 344839 local4.debug] => test_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 138056 local4.debug]     SUBSTRINGS
Dec 13 10:56:25 netra slapd[29039]: [ID 848268 local4.debug] begin test_substrings_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 908887 local4.debug] end test_substrings_filter 1
Dec 13 10:56:25 netra slapd[29039]: [ID 791166 local4.debug] <= test_filter 5
Dec 13 10:56:25 netra slapd[29039]: [ID 344839 local4.debug] => test_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 138056 local4.debug]     SUBSTRINGS
Dec 13 10:56:25 netra slapd[29039]: [ID 848268 local4.debug] begin test_substrings_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 908887 local4.debug] end test_substrings_filter 1
Dec 13 10:56:25 netra slapd[29039]: [ID 791166 local4.debug] <= test_filter 5
Dec 13 10:56:25 netra slapd[29039]: [ID 238222 local4.debug] <= test_filter_or 5
Dec 13 10:56:25 netra slapd[29039]: [ID 791166 local4.debug] <= test_filter 5
Dec 13 10:56:25 netra slapd[29039]: [ID 344839 local4.debug] => test_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 958614 local4.debug]     OR
Dec 13 10:56:25 netra slapd[29039]: [ID 206274 local4.debug] => test_filter_or
Dec 13 10:56:25 netra slapd[29039]: [ID 344839 local4.debug] => test_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 138056 local4.debug]     SUBSTRINGS
Dec 13 10:56:25 netra slapd[29039]: [ID 848268 local4.debug] begin test_substrings_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 908887 local4.debug] end test_substrings_filter 1
Dec 13 10:56:25 netra slapd[29039]: [ID 791166 local4.debug] <= test_filter 5
Dec 13 10:56:25 netra slapd[29039]: [ID 344839 local4.debug] => test_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 138056 local4.debug]     SUBSTRINGS
Dec 13 10:56:25 netra slapd[29039]: [ID 848268 local4.debug] begin test_substrings_filter
Dec 13 10:56:25 netra slapd[29039]: [ID 908887 local4.debug] end test_substrings_filter 1
Dec 13 10:56:25 netra slapd[29039]: [ID 791166 local4.debug] <= test_filter 5
Dec 13 10:56:25 netra slapd[29039]: [ID 238222 local4.debug] <= test_filter_or 5
Dec 13 10:56:25 netra slapd[29039]: [ID 791166 local4.debug] <= test_filter 5
...

but Outlook says "Nothing found according to search criteria"

If I run manually

ldapsearch -b "dc=twistfare,dc=be" "cn=*"

then I get the result from slapd :

version: 1
dn: cn=Manager,dc=twistfare,dc=be
objectClass: organizationalRole
cn: Manager

Any clue why Outlook does not return any values back to me ?

TIA

Rob

Rob wrote:
Graham,

this is incorrect syntax for syslog.conf on my Solaris-8 box, more precisely :

<facility>.<level>

where <facility> can be LOCAL4 or *, for example, but <level> cannot be an asterisk !

Is this different on Linux ? Because on most other UNIX brands I have come accross the <level> could never be a wildcard like '*' .
Still, if someone could tell me what the <level> is used by slapd for its syslog-logging, then I can specify it to go to my logfile, even if it's multiple <level>'s .

Thanks in advance,

Rob

Graham Freeman wrote:
On Thu, 12 Dec 2002, Rob wrote:

  
I am fighting with the "loglevel" option in slapd.conf, just to get a 
brief logging about what query the LDAP server received from outlook.
    


I had to add this to my /etc/syslog.conf on my Red Hat Linux 8.0 server in
order to get useful OpenLDAP logs.

[...begin quote...]
# Save ldap messages
local4.*                                                /var/log/ldap
[...end quote...]

Then, after making sure "loglevel 32" (or 64, or whatever) was in my
/etc/openldap/slapd.conf file, I restarted both openldap ("/sbin/service
ldap restart") and syslog ("/sbin/service syslog restart") and suddenly I
had useful log info.