LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-12-2011, 10:12 AM   #1
ridingthestorm
LQ Newbie
 
Registered: Sep 2008
Distribution: Debian, FreeBSD
Posts: 21

Rep: Reputation: 0
Thunderbird Addressbook with OpenLDAP


Hi,

I'm trying to connect a Thunderbird addresbook to an OpenLDAP server. It seems to authenticate ok but no results appear in the addressbook. This is what I get from the logs:

Code:
Aug 12 12:04:36 server slapd[54734]: conn=1018 fd=14 ACCEPT from IP=xx.xx.xx.xx:65161 (IP=0.0.0.0:389)
Aug 12 12:04:36 server slapd[54734]: conn=1018 op=0 BIND dn="cn=Manager,dc=domainname,dc=tld" method=128
Aug 12 12:04:36 server slapd[54734]: conn=1018 op=0 BIND dn="cn=Manager,dc=domainname,dc=tld" mech=SIMPLE ssf=0
Aug 12 12:04:36 server slapd[54734]: conn=1018 op=0 RESULT tag=97 err=0 text=
Aug 12 12:04:36 server slapd[54734]: conn=1018 op=1 SRCH base="ou=TBabook,dc=domainname,dc=tld" scope=2 deref=0 filter="(objectClass=*)"
Aug 12 12:04:36 server slapd[54734]: conn=1018 op=1 SEARCH RESULT tag=101 err=0 nentries=2 text=
Aug 12 12:04:38 server slapd[54734]: conn=1018 op=2 UNBIND
Aug 12 12:04:38 server slapd[54734]: conn=1018 fd=14 closed
When I do

Code:
ldapsearch -W -H ldap://localhost/ -D cn=Manager,dc=domainname,dc=tld -b 'ou=TBabook,dc=domainname,dc=tld' '(objectclass=*)'
I get the same in the logs, but it also prints the contents of ou=TBabook:

Code:
# extended LDIF
#
# LDAPv3
# base <dc=domainname,dc=tld> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# domainname.tld
dn: dc=domainname,dc=tld
objectClass: dcObject
objectClass: organization
o: domainname.tld
dc: domainname

# Manager, domainname.tld
dn: cn=Manager,dc=domainname,dc=tld
objectClass: organizationalRole
cn: Manager

# TBabook, domainname.tld
dn: ou=TBabook,dc=domainname,dc=tld
objectClass: organizationalUnit
objectClass: top
ou: TBabook

# John User, TBabook, domainname.tld
dn: cn=John User,ou=TBabook,dc=domainname,dc=tld
objectClass: inetOrgPerson
objectClass: top
objectClass: person
cn: John User
givenName: John
mail: john@domainname.tld
sn: User


# search result
search: 2
result: 0 Success

# numResponses: 5
# numEntries: 4
Any ideas of what could be the cause?

Last edited by ridingthestorm; 08-12-2011 at 04:30 PM.
 
Old 08-12-2011, 01:05 PM   #2
ridingthestorm
LQ Newbie
 
Registered: Sep 2008
Distribution: Debian, FreeBSD
Posts: 21

Original Poster
Rep: Reputation: 0
Seems to be a Thunderbird Issue

I just analyzed my Thunderbird-OpenLDAP session with wireshark, and it shows an ideal conversation! Here's an outline:

Code:
T  bindRequest(1) "cn=Manager,dc=domainname,dc=tld" simple 
O  bindResponse(1) success 
T  searchRequest(2) "ou=TBabook,dc=domainname,dc=tld" wholeSubtree 
O  searchResEntry(2) "ou=TBabook,dc=domainname,dc=tld" 
O  searchResEntry(2) "cn=John User,ou=TBabook,dc=domainname,dc=tld" 
O  searchResEntry(2) "cn=Jane User,ou=TBabook,dc=domainname,dc=tld" 
O  searchResDone(2) success 
T  unbindRequest(3)
I also browsed the contents of responses deeper, and all the expexted data is there. So my server works ok, what could be wrong with Thunderbird that it shows nothing it had received in address book?
 
Old 08-12-2011, 02:36 PM   #3
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Rep: Reputation: 9
The last time I used Thunderbird with OpenLDAP, Thunderbird would import the contacts but it did NOT automatically display them all. You had to do a search, and then it would display matching entries. I believe you could even search for "space" (i.e. hit the space bar and then search).

Try that, just to rule out a bug (or working as designed but not how you'd like) issue with Thunderbird.
 
1 members found this post helpful.
Old 08-12-2011, 04:27 PM   #4
ridingthestorm
LQ Newbie
 
Registered: Sep 2008
Distribution: Debian, FreeBSD
Posts: 21

Original Poster
Rep: Reputation: 0
You're right, THANK YOU! Just a minute ago I found that ~/.thunderbird/7757lfgb.default/ldap.mab actually contains the contacts from my LDAP server, so I began to think there must be kinda trick. And here's your answer. Nightmare has come to an end
Thank you, really!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nss_ldap, openldap and openldap-server ... what is openldap for? chakkerz Linux - Server 2 08-13-2009 07:16 PM
LXer: OpenLDAP Quick Tips: OpenLDAP Logfile analysis LXer Syndicated Linux News 0 12-01-2008 04:00 PM
LXer: OpenLDAP Quick Tips: Regularly upgrade OpenLDAP! LXer Syndicated Linux News 0 11-25-2008 02:00 PM
Importing, mail, addressbook into Thunderbird mickeyboa Fedora 3 05-14-2008 04:40 AM
Saving addressbook upon reinstall iqbala Linux - Software 1 01-08-2007 05:01 PM


All times are GMT -5. The time now is 04:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration