Hi,
I am using SquirrelMail 1.4.5 on a Gentoo Linux system (Apache 2.0.54 and
PHP 4.4.0). I have setup the LDAP address book feature by doing a
'./configure' in the root of the SquirrelMail directory. I then chose
option 6 (Address Books) and then option 1 (Change LDAP Servers). I add a
new LDAP server with a '+' and at the end my config is:
0. bobbysue.mcc.edu
base: ou=users,dc=mcc,dc=edu
name: Global Address Book
protocol: 3
All looks good, I do a 'd' and save my config. I login to SquirrelMail,
click Compose, and the click the Addresses button. I use "marc" as the
search key and choose 'Global Address Book' as the address book to search.
Nothing gets returned, I get the message "No persons matching your search
were found" below the button. So, I take a look at my OpenLDAP server log,
and I see it performing a search, and it appears there are results founds,
yet nothing shows up in SquirrelMail:
Mar 21 10:33:19 bobbysue slapd[17630]: conn=129 fd=26 ACCEPT from
IP=207.74.133.226:41882 (IP=0.0.0.0:389)
Mar 21 10:33:19 bobbysue slapd[17808]: conn=129 op=0 BIND dn="" method=128
Mar 21 10:33:19 bobbysue slapd[17808]: conn=129 op=0 RESULT tag=97 err=0
text=
Mar 21 10:33:19 bobbysue slapd[25001]: conn=129 op=1 SRCH
base="ou=users,dc=mcc,dc=edu" scope=2 deref=0 filter="(cn=*marc*)"
Mar 21 10:33:19 bobbysue slapd[25001]: conn=129 op=1 SRCH attr=dn o ou sn
givenname cn mail
Mar 21 10:33:19 bobbysue slapd[25001]: conn=129 op=1 SEARCH RESULT tag=101
err=0 nentries=74 text=
Mar 21 10:33:19 bobbysue slapd[15100]: conn=129 op=2 UNBIND
Mar 21 10:33:19 bobbysue slapd[15100]: conn=129 fd=26 closed
Here is an example LDAP entry for a typical user:
dn: uid=msmith,ou=Users,dc=mcc,dc=edu
uid: msmith
objectClass: account,posixAccount,top,shadowAccount,sambaSamAccount
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 11205
sambaSID: S-1-5-21-2737720518-3188343511-1042923885-24610
sambaPasswordHistory:
0000000000000000000000000000000000000000000000000000000000000000
shadowLastChange: 12948
homeDirectory: /home/users/msmith
sambaHomePath: \\BEAUMONT\msmith
gidNumber: 1112
sambaPrimaryGroupSID: S-1-5-21-2737720518-3188693511-1045965985-3225
gecos: Marc,Smith,023
description: Marc,Smith,023
displayName: Marc,Smith,023
sambaKickoffTime: 1262322000
sambaPwdCanChange: 1135112071
sambaLMPassword: x
sambaAcctFlags: [U]
sambaNTPassword: x
sambaPwdLastSet: 1136143430
sambaPwdMustChange: 1144697030
userPassword: {SSHA}x
sambaHomeDrive: R:
cn: Marc Smith
I know I don't have all the LDAP attributes that SquirrelMail is trying to
return, but it should still return something, right? Where can I set the
attributes that should be returned when an entry is found?
Thanks for your time.
--Marc
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
--
squirrelmail-users mailing list
Posting Guidelines:
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: [email protected]
List Archives:
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users