OK, I think I'm getting closer but it's still eluding me somehow. I'm new to
LDAP (that's probably obvious) so I'm a little uncertain. Thanks so much for
your help so far with this.

I edited the following line in my slapd.conf file to include the non-indexed
fields:
index           objectClass,uid,mail eq

I rebuilt the index using slapindex (big ordeal as I did it as root the
first time and had to start over, but I got there).

Now when I run ldapsearch it comes up with the proper entry:

------------------------------------------------------------------------------------------
modernedge-linux:/etc/ldap# ldapsearch -x -W -D
cn=itadmin,dc=modernedge,dc=com -b "ou=users,dc=modernedge,dc=com"
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <ou=users,dc=modernedge,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# users, MODERNEDGE.COM
dn: ou=users,dc=MODERNEDGE,dc=COM
objectClass: organizationalUnit
ou: users
# sogo, users, MODERNEDGE.COM
dn: uid=sogo,ou=users,dc=MODERNEDGE,dc=COM
objectClass: top
objectClass: inetOrgPerson
objectClass: person
objectClass: organizationalPerson
uid: sogo
cn:: U09HbyBBZG1pbmlzdHJhdG9yIA==
mail: [email protected]
sn: Administrator
givenName: SOGo
userPassword:: e1NTSEF9SzNza1dMQWdaajdmT2xodDZmdHpDOEtFOGRpVCtTVmM=
# search result
search: 2
result: 0 Success
# numResponses: 3
# numEntries: 2
------------------------------------------------------------------------------------------

But when I try to set up the AddressBook connection again it still does
nothing.


The debug log now shows this:

------------------------------------------------------------------------------------------
1902 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 fd=14 ACCEPT from
IP=127.0.0.1:46497 (IP=0.0.0.0:389)
1903 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 fd=14 ACCEPT from
IP=127.0.0.1:46497 (IP=0.0.0.0:389)
1904 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 op=0 BIND
dn="uid=sogo,ou=users,dc=modernedge,dc=com" method=128
1905 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 op=0 BIND
dn="uid=sogo,ou=users,dc=modernedge,dc=com" method=128
1906 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 op=0 BIND
dn="uid=sogo,ou=users,dc=MODERNEDGE,dc=COM" mech=SIMPLE ssf=0
1907 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 op=0 BIND
dn="uid=sogo,ou=users,dc=MODERNEDGE,dc=COM" mech=SIMPLE ssf=0
1908 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 op=0 RESULT tag=97
err=0 text=
1909 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 op=0 RESULT tag=97
err=0 text=
1910 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 op=1 SRCH
base="ou=users,dc=modernedge,dc=com" scope=2 deref=0
filter="(|(uid=sogo)(mail=sogo))"
1911 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 op=1 SRCH
base="ou=users,dc=modernedge,dc=com" scope=2 deref=0
filter="(|(uid=sogo)(mail=sogo))"
1912 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 op=1 SRCH
attr=objectClass cn uid mail title company o displayname modifytimestamp
mozillahomestate mozillahomeurl hom     eurl st region mozillacustom2
custom2 mozillahomecountryname description notes department departmentnumber
ou orgunit mobile cellphone carphone mozillacustom1 custom1 mozi
llanickname xmozillanickname mozillaworkurl workurl fax
facsimiletelephonenumber telephonenumber mozillahomestreet
mozillasecondemail xmozillasecondemail mozillacustom4 cu     stom4 nsaimid
nscpaimscreenname street streetaddress postofficebox homephone cn commonname
givenname mozillahomepostalcode mozillahomelocalityname mozillaworkstreet2
mozil     lausehtmlmail xmozillausehtmlmail mozillahomestreet2 postalcode
zip c countryname pager pagerphone mail sn surname mozillacustom3 custom3 l
locality birthyear serialnumber      calfburl proxyaddresses
1913 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 op=1 SRCH
attr=objectClass cn uid mail title company o displayname modifytimestamp
mozillahomestate mozillahomeurl hom     eurl st region mozillacustom2
custom2 mozillahomecountryname description notes department departmentnumber
ou orgunit mobile cellphone carphone mozillacustom1 custom1 mozi
llanickname xmozillanickname mozillaworkurl workurl fax
facsimiletelephonenumber telephonenumber mozillahomestreet
mozillasecondemail xmozillasecondemail mozillacustom4 cu     stom4 nsaimid
nscpaimscreenname street streetaddress postofficebox homephone cn commonname
givenname mozillahomepostalcode mozillahomelocalityname mozillaworkstreet2
mozil     lausehtmlmail xmozillausehtmlmail mozillahomestreet2 postalcode
zip c countryname pager pagerphone mail sn surname mozillacustom3 custom3 l
locality birthyear serialnumber      calfburl proxyaddresses
1914 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 op=1 SEARCH RESULT
tag=101 err=0 nentries=1 text=
1915 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 op=1 SEARCH RESULT
tag=101 err=0 nentries=1 text=
1916 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 op=2 UNBIND
1917 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 op=2 UNBIND
1918 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 fd=14 closed
1919 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=7 fd=14 closed
1920 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=8 fd=14 ACCEPT from
IP=127.0.0.1:46499 (IP=0.0.0.0:389)
1921 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=8 fd=14 ACCEPT from
IP=127.0.0.1:46499 (IP=0.0.0.0:389)
1922 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=8 op=0 BIND
dn="uid=sogo,ou=users,dc=modernedge,dc=com" method=128
1923 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=8 op=0 BIND
dn="uid=sogo,ou=users,dc=modernedge,dc=com" method=128
1924 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=8 op=0 BIND
dn="uid=sogo,ou=users,dc=MODERNEDGE,dc=COM" mech=SIMPLE ssf=0
1925 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=8 op=0 BIND
dn="uid=sogo,ou=users,dc=MODERNEDGE,dc=COM" mech=SIMPLE ssf=0
1926 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=8 op=0 RESULT tag=97
err=0 text=
1927 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=8 op=0 RESULT tag=97
err=0 text=
1928 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=8 op=1 UNBIND
1929 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=8 op=1 UNBIND
1930 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=8 fd=14 closed
1931 Aug 17 17:08:09 modernedge-linux slapd[3365]: conn=8 fd=14 closed
------------------------------------------------------------------------------------------



On Wed, Aug 17, 2011 at 3:25 PM, Stephen Ingram <[email protected]> wrote:
>
> Joel-
>
> It looks like your LDAP server is not setup correctly. You need to
> index the uid and mail attributes in order to quickly search for them.
> If you are using OpenLDAP, try using the tools that come with it (e.g.
> ldapsearch) to make sure you get what you expect before even trying it
> in SOGo. A great debugging tool--if ldapsearch can't find the entries
> you are looking for, then SOGo is certainly not going to be able to
> either.
>
> Steve
>
> On Wed, Aug 17, 2011 at 3:06 PM, Joel Newman <[email protected]> wrote:
> > To add to the discussion:
> > I (finally) found the debug log for my LDAP server. When I set up the
new
> > connection on the Mac side, here's what comes up server-side. I'm having
> > trouble interpreting it.
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 fd=14 ACCEPT from
> > IP=127.0.0.1:54487 (IP=0.0.0.0:389)
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 fd=14 ACCEPT from
> > IP=127.0.0.1:54487 (IP=0.0.0.0:389)
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 op=0 BIND
> > dn="uid=sogo,ou=users,dc=modernedge,dc=com" method=128
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 op=0 BIND
> > dn="uid=sogo,ou=users,dc=modernedge,dc=com" method=128
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 op=0 BIND
> > dn="uid=sogo,ou=users,dc=MODERNEDGE,dc=COM" mech=SIMPLE ssf=0
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 op=0 BIND
> > dn="uid=sogo,ou=users,dc=MODERNEDGE,dc=COM" mech=SIMPLE ssf=0
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 op=0 RESULT tag=97
> > err=0 text=
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 op=0 RESULT tag=97
> > err=0 text=
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 op=1 SRCH
> > base="ou=users,dc=modernedge,dc=com" scope=2 deref=0
> > filter="(|(uid=sogo)(mail=sogo))"
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 op=1 SRCH
> > base="ou=users,dc=modernedge,dc=com" scope=2 deref=0
> > filter="(|(uid=sogo)(mail=sogo))"
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 op=1 SRCH
> > attr=objectClass cn uid mail title company o displayname modifytimestamp
> > mozillahomestate mozillahomeurl homeurl st region mozillacustom2 custom2
> > mozillahomecountryname description notes department departmentnumber ou
> > orgunit mobile cellphone carphone mozillacustom1 custom1 mozillanickname
> > xmozillanickname mozillaworkurl workurl fax facsimiletelephonenumber
> > telephonenumber mozillahomestreet mozillasecondemail xmozillasecondemail
> > mozillacustom4 custom4 nsaimid nscpaimscreenname street streetaddress
> > postofficebox homephone cn commonname givenname mozillahomepostalcode
> > mozillahomelocalityname mozillaworkstreet2 mozillausehtmlmail
> > xmozillausehtmlmail mozillahomestreet2 postalcode zip c countryname
pager
> > pagerphone mail sn surname mozillacustom3 custom3 l locality birthyear
> > serialnumber calfburl proxyaddresses
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 op=1 SRCH
> > attr=objectClass cn uid mail title company o displayname modifytimestamp
> > mozillahomestate mozillahomeurl homeurl st region mozillacustom2 custom2
> > mozillahomecountryname description notes department departmentnumber ou
> > orgunit mobile cellphone carphone mozillacustom1 custom1 mozillanickname
> > xmozillanickname mozillaworkurl workurl fax facsimiletelephonenumber
> > telephonenumber mozillahomestreet mozillasecondemail xmozillasecondemail
> > mozillacustom4 custom4 nsaimid nscpaimscreenname street streetaddress
> > postofficebox homephone cn commonname givenname mozillahomepostalcode
> > mozillahomelocalityname mozillaworkstreet2 mozillausehtmlmail
> > xmozillausehtmlmail mozillahomestreet2 postalcode zip c countryname
pager
> > pagerphone mail sn surname mozillacustom3 custom3 l locality birthyear
> > serialnumber calfburl proxyaddresses
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: <=
bdb_equality_candidates:
> > (uid) not indexed
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: <=
bdb_equality_candidates:
> > (uid) not indexed
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: <=
bdb_equality_candidates:
> > (mail) not indexed
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: <=
bdb_equality_candidates:
> > (mail) not indexed
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 op=1 SEARCH RESULT
> > tag=101 err=0 nentries=1 text=
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 op=1 SEARCH RESULT
> > tag=101 err=0 nentries=1 text=
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 op=2 UNBIND
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 op=2 UNBIND
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 fd=14 closed
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=0 fd=14 closed
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=1 fd=14 ACCEPT from
> > IP=127.0.0.1:54489 (IP=0.0.0.0:389)
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=1 fd=14 ACCEPT from
> > IP=127.0.0.1:54489 (IP=0.0.0.0:389)
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=1 op=0 BIND
> > dn="uid=sogo,ou=users,dc=modernedge,dc=com" method=128
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=1 op=0 BIND
> > dn="uid=sogo,ou=users,dc=modernedge,dc=com" method=128
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=1 op=0 BIND
> > dn="uid=sogo,ou=users,dc=MODERNEDGE,dc=COM" mech=SIMPLE ssf=0
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=1 op=0 BIND
> > dn="uid=sogo,ou=users,dc=MODERNEDGE,dc=COM" mech=SIMPLE ssf=0
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=1 op=0 RESULT tag=97
> > err=0 text=
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=1 op=0 RESULT tag=97
> > err=0 text=
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=1 op=1 UNBIND
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=1 op=1 UNBIND
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=1 fd=14 closed
> >
> > Aug 17 14:47:13 modernedge-linux slapd[32565]: conn=1 fd=14 closed
> >
> >
> > On Wed, Aug 17, 2011 at 2:26 PM, Joel Newman <[email protected]> wrote:
> >>
> >> Steve,
> >> Thanks for the suggestion... unfortunately that didn't fix it.
> >> What's really frustrating is that there's no indication from
AddressBook
> >> that it's even trying to connect. There's no reload/refresh button, no
> >> setting to tell it how often to sync, and the system log console simply
says
> >> "com.apple.AddressBook[4958] Child with pid 5031 exited normally" when
I add
> >> or delete an LDAP account.
> >> Strangely enough, the system log records a "Could not connect to
server"
> >> error when I add a CardDAV account, but successfully adds the account
> >> anyway.
> >> - Joel
> >>
> >>
> >> On Wed, Aug 17, 2011 at 12:15 PM, Stephen Ingram <[email protected]>
> >> wrote:
> >>>
> >>> Joel-
> >>>
> >>> Try ou=users,dc=modernedge,dc=com for your Search Base.
> >>>
> >>> Steve
> >>>
> >>> On Wed, Aug 17, 2011 at 11:49 AM, Joel Newman <[email protected]>
wrote:
> >>> > Hello,
> >>> > I've just set up SOGo on a Debian Linux server to use as an office
> >>> > contact
> >>> > sharing system, and it works great so far. I have all services
running
> >>> > and
> >>> > have successfully connected the CardDAV system to my AddressBook.app
on
> >>> > OSX
> >>> > 10.6.
> >>> > However, we have a couple of older Mac G5s in the office which can't
> >>> > upgrade
> >>> > past OSX 10.5, and so their AddressBook.app doesn't have CardDAV
> >>> > supported.
> >>> > I'm trying to get those connected via LDAP and failing... I don't
get
> >>> > any
> >>> > errors, it simply adds the connection and never does anything with
it.
> >>> > I have only one user set up on sogo at this point, trying to connect
> >>> > all
> >>> > computers to the same account, so I know the credentials are good.
> >>> > Running
> >>> > nmap reports that port 389 on the server is open for LDAP
connection. I
> >>> > can
> >>> > login using the same credentials and LDAP authentication on the web
> >>> > interface.
> >>> > The AddressBook configuration I have is:
> >>> > Server: 10.1.10.20 (this is an internal office test server)
> >>> > Port: 389
> >>> > Search Base: ou=users
> >>> > Scope: Subtree
> >>> > Authentication: simple
> >>> > User Name: sogo
> >>> > Password: secret
> >>> > My sogo configuration is:
> >>> > {
> >>> >     NSGlobalDomain = {
> >>> >     };
> >>> >     sogod = {
> >>> >         OCSFolderInfoURL =
> >>> > "mysql://sogo:sogo@localhost:3306/sogo/sogo_folder_info";
> >>> >         OCSSessionsFolderURL =
> >>> > "mysql://sogo:sogo@localhost:3306/sogo/sogo_sessions_folder";
> >>> >         SOGoAppointmentSendEMailNotifications = YES;
> >>> >         SOGoCalendarDefaultRoles = (
> >>> >             PublicViewer,
> >>> >             ConfidentialDAndTViewer
> >>> >         );
> >>> >         SOGoContactsDefaultRoles = (
> >>> >             ObjectViewer,
> >>> >             ObjectEditor,
> >>> >             ObjectCreator,
> >>> >             ObjectEraser
> >>> >         );
> >>> >         SOGoDraftsFolderName = Drafts;
> >>> >         SOGoIMAPServer = localhost;
> >>> >         SOGoLanguage = English;
> >>> >         SOGoMailDomain = modernedge.com;
> >>> >         SOGoMailingMechanism = smtp;
> >>> >         SOGoProfileURL =
> >>> > "mysql://sogo:sogo@localhost:3306/sogo/sogo_user_profile";
> >>> >         SOGoSMTPServer = 127.0.0.1;
> >>> >         SOGoSentFolderName = Sent;
> >>> >         SOGoSuperUsernames = (
> >>> >             jnewman,
> >>> >             aangell
> >>> >         );
> >>> >         SOGoTimeZone = America/Los_Angeles;
> >>> >         SOGoTrashFolderName = Trash;
> >>> >         SOGoUserSources = (
> >>> >             {
> >>> >                 CNFieldName = cn;
> >>> >                 IDFieldName = uid;
> >>> >                 UIDFieldName = uid;
> >>> >                 baseDN = "ou=users,dc=modernedge,dc=com";
> >>> >                 bindDN = "uid=sogo,ou=users,dc=modernedge,dc=com";
> >>> >                 bindPassword = rabbit84Car;
> >>> >                 canAuthenticate = YES;
> >>> >                 displayName = "Shared Addresses";
> >>> >                 hostname = localhost;
> >>> >                 id = public;
> >>> >                 isAddressBook = YES;
> >>> >                 port = 389;
> >>> >                 type = ldap;
> >>> >             }
> >>> >             }
> >>> >         );
> >>> >     };
> >>> > }
> >>> >
> >>> > Any ideas how I can get this working? Thanks in advance!
> >>> > - Joel Newman
> >>> > Digital Administrator
> >>> > Modern Edge, Inc.
> >>> > Portland, OR USA
> >>> >
> >>> --
> >>> [email protected]
> >>> https://inverse.ca/sogo/lists
> >
> >
> --
> [email protected]
> https://inverse.ca/sogo/lists
-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to