Koozali.org: home of the SME Server

LDAP searchs

David Sedeño

LDAP searchs
« on: January 28, 2002, 02:51:23 PM »
Hi,

I'm having troubles in the searches to the ldap directory. Doesn't work in the webmail and Outlook Express. In outlook I set the search to "dc=domain,dc=com" but doesn't find anything...

Any idea?

Lloyd Keen

Re: LDAP searchs
« Reply #1 on: January 28, 2002, 03:38:05 PM »
Once you add the directory service go to the advanced tab for the properties of the server and just below the section where you add the search base you have to tick the box that says "use simple search filter" or similar (I'm going from memory here). Let me know if that works if not I'll put up some screen shots for you.

David Sedeño

Re: LDAP searchs
« Reply #2 on: January 29, 2002, 01:49:34 PM »
Hi,

I have checked the "use simple search filter" but doesn't work either.

I have see this in the log of the server:

Jan 29 06:51:15 rojo1 slapd[837]: conn=5 op=0 BIND dn="" method=128
Jan 29 06:51:15 rojo1 slapd[837]: conn=5 op=0 RESULT tag=97 err=0 text=
Jan 29 06:51:15 rojo1 slapd[837]: conn=5 op=1 SRCH base="dc=mydomain,dc=com" scope=2 filter="(|(mail=teresa*)(cn=teresa*))"
Jan 29 06:51:15 rojo1 slapd[837]: <= substrings_candidates db open failed (mail.gdbm)
Jan 29 06:51:15 rojo1 slapd[837]: <= substrings_candidates db open failed (cn.gdbm)
Jan 29 06:51:15 rojo1 slapd[837]: conn=5 op=1 SEARCH RESULT tag=101 err=0 text=
Jan 29 06:51:15 rojo1 slapd[837]: conn=-1 fd=11 closed

Any idea??

Thanks in advanced

Dallas Hilla

Re: LDAP searchs
« Reply #3 on: February 06, 2002, 05:52:25 PM »
Hello David,

I have just discovered (by accident) how to solve your problem, I have Outlook XP too !!!

In Outlook XP, go to:

    TOOLS --> Email Accounts

Select option:  View or change existing directories or address books
Click [Next>] button.

Select your LDAP definition from the "Directories and Address Books" list
Click the [Change] button
Click [More Settings...] button
Select the tab and enter into the "Search Base" :

    cn=*,dc=yourdomain,dc=com,dc=au

The key was the "cn=*" entry, which made all addresses list out on the addressbook using wildcard "*" to show all names.


Cheers,
Dal
--
Dallas Hilla
BE (Chemical), BSc (Computer Science, IT)
Linux Mainframe Systems and Desktop Developer
Cook Australia
Brisbane Technology Park
61 / 25 Buckingham Place
Eight Mile Plains
Brisbane Q 4113
Home: 07 3341 3130
Work: 07 3841 1188
Mobile: 0407 973 728
Email: hillad@ozemail.com.au

Dallas Hilla

Re: LDAP searchs
« Reply #4 on: February 06, 2002, 06:12:52 PM »
So sorry,my bad.  I should have tested this by closing Outlook and trying to list the LDAP contents again...  *sigh*  M$ just does not make it easy for us using XP.

It was worth a stab.  Anyone else had better luck...?


Dal