General discussion on installation and configuration of SOGo

Text archives Help


Re: [SOGo] more than one baseDN for users in LDAP


Chronological Thread 
  • From: Oliver Koller < >
  • To:
  • Subject: Re: [SOGo] more than one baseDN for users in LDAP
  • Date: Mon, 29 Nov 2010 09:13:53 +0100

Hi Robert

ldapsearch works but the key/string combination not.
I have changed the dc=local to dc=ch


Here my config:

SOGo:
-------------------------------------------------------------
sogod SOGoMailDomain fust.ch
sogod WONoDetach NO
sogod SOGoLoginModule Contacts
sogod OCSFolderInfoURL
mysql://sogo: :3306/sogo/sogo_folder_info
sogod SOGoUserSources '(
{
CNFieldName = cn;
IDFieldName = uid;
IMAPHostFieldName = mailHost;
UIDFieldName = uid;
baseDN = "dc=fust,dc=ch";
bindDN = "uid=sogo,ou=daemons,ou=informatik,dc=fust,dc=ch";
bindPassword = XXX;
canAuthenticate = YES;
displayName = "Adressen";
hostname = localhost;
id = public;
isAddressBook = YES;
port = 389;
scope = sub;
type = ldap;
}
)'
sogod SOGoMemcachedHost localhost
sogod SOGoFoldersSendEMailNotifications NO
sogod SOGoTimeZone Europe/Zurich
sogod SOGoAppointmentSendEMailNotifications NO
sogod SOGoACLsSendEMailNotifications NO
sogod SOGoLanguage German
sogod SOGoProfileURL
mysql://sogo: :3306/sogo/sogo_user_profile
--------------------------------------------------------------------

LDAP:
----------------------------------------------------------------------
# extended LDIF
#
# LDAPv3
# base <dc=fust,dc=ch> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# fust.ch
dn: dc=fust,dc=ch
objectClass: top
objectClass: dcObject
objectClass: organization
o: Dipl. Ing. Fust AG
dc: fust
description: LDAP Fust

# admin, fust.ch
dn: cn=admin,dc=fust,dc=ch
objectClass: organizationalRole
cn: admin
description: LDAP administrator

# informatik, fust.ch
dn: ou=informatik,dc=fust,dc=ch
objectClass: organizationalUnit
description: Informatik
ou: informatik

# auftragsabwicklung, fust.ch
dn: ou=auftragsabwicklung,dc=fust,dc=ch
objectClass: organizationalUnit
description: Auftragsabwicklung
ou: auftragsabwicklung

# okoller, informatik, fust.ch
dn: uid=okoller,ou=informatik,dc=fust,dc=ch
objectClass: inetOrgPerson
description: Mitarbeiter Informatik, Oliver Koller, UNIX/Netzwerk
givenName: Oliver
sn: Koller
cn: Oliver Koller
mail: ... <AT> fust.ch
uid: okoller
# superuser, fust.ch
dn: cn=superuser,dc=fust,dc=ch
objectClass: top
objectClass: groupOfNames
cn: superuser
member: uid=okoller,ou=informatik,dc=fust,dc=ch
member: uid=gmueller,ou=auftragsabwicklung,dc=fust,dc=ch

# sschmid, informatik, fust.ch
dn: uid=sschmid,ou=informatik,dc=fust,dc=ch
objectClass: inetOrgPerson
description: Mitarbeiter Informatik, Silvan Schmid, Windwos-Server
givenName: Silvan
sn: Schmid
cn: Silvan Schmid
mail: ss <AT> fust.ch
uid: sschmid

# gmueller, auftragsabwicklung, fust.ch
dn: uid=gmueller,ou=auftragsabwicklung,dc=fust,dc=ch
objectClass: inetOrgPerson
description: Chef Auftragsabwicklung, Guido Mueller
givenName: Guido
sn:: TcO8bGxlcg==
cn:: R3VpZG8gTcO8bGxlcg==
mail: ggg <AT> fust.ch
uid: gmueller

# anonymous, informatik, fust.ch
dn: uid=anonymous,ou=informatik,dc=fust,dc=ch
objectClass: inetOrgPerson
description: Anonymer User der alles anzeigen Kann
givenName: Anonymous
sn: Anonymous
cn: Anonymous Anonymous
uid: anonymous

# daemons, informatik, fust.ch
dn: ou=daemons,ou=informatik,dc=fust,dc=ch
objectClass: organizationalUnit
ou: daemons

# sogo, daemons, informatik, fust.ch
dn: uid=sogo,ou=daemons,ou=informatik,dc=fust,dc=ch
objectClass: top
objectClass: inetOrgPerson
objectClass: person
objectClass: organizationalPerson
uid: sogo
cn: SOGo Administrator
mail:

sn: Administrator
givenName: SOGo

# people, fust.ch
dn: ou=people,dc=fust,dc=ch
objectClass: organizationalUnit
ou: people

# ncamara, auftragsabwicklung, fust.ch
dn: uid=ncamara,ou=auftragsabwicklung,dc=fust,dc=ch
objectClass: inetOrgPerson
description: Mitarbeiterin Auftragsabwicklung, Nadia Camara, Buero 8
givenName: Nadia
sn: Camara
cn: Nadia Camara
mail:

uid: ncamara

# search result
search: 2
result: 0 Success

# numResponses: 14
# numEntries: 13
-------------------------------------------------------------------------------------
Is that ok or need you the "cn=config"?

Thank you
Oliver


Am 26.11.2010 20:36, schrieb Robert Weilhammer:
Hi Oliver,

can you query your OpenLDAP, if you sepicify dc=fust,dc=local as base ?

e.g.
# ldapsearch -x -b "dc=Fust,dc=local" -h $ldapserver


did you specified a scope for your query ?

you should use "sub", if you use dc=fust,dc=local as basedn

<key>scope</key>
<string>sub</key>


your ldap-config andn sogo ldap-config would be really helpful to debug more
...


Kind regards,
Robert


Am 26.11.2010 um 17:03 schrieb Oliver Koller:

Hi
I have alredy tried this, does not work.


Am 26.11.2010 16:51, schrieb
:
Hi,

Are you using Active Directory ?
Try to have this configuration in your config file :

<key>baseDN</key>
<string>DC=fust,DC=local</string>

Best regards,

Raphaël--

https://inverse.ca/sogo/lists

--

https://inverse.ca/sogo/lists





Archive powered by MHonArc 2.6.16.

Top of page