Hello Am 22.11.2016 um 14:15 schrieb Jonathan Dumaresq ([email protected]): > > Le 22/11/2016 à 06:12, Christian Mack ([email protected]) a > écrit : >> Am 18.11.2016 um 15:14 schrieb Jonathan Dumaresq ([email protected]): >>> >>> We try to get our global addressbook working in sogo v3.2.1 and we have >>> some problem in the config file. We try to import a new contect from >>> sogo web interface and we cannot map the cn correctly to import it in >>> the LDAP. >>> >>> here the config >>> >>> SOGoUserSources = ( >>> { >>> id = sambaContacts; >>> modifiers = ( [email protected], [email protected] ); >>> displayName = "Contacts"; >>> canAuthenticate = NO; >>> isAddressBook = YES; >>> type = ldap; >>> CNFieldName = cn; >>> IDFieldName = cn; >>> UIDFieldName = cn; >>> objectClasses = contact; >>> hostname = "ldap://myldapserver:389"; >>> baseDN = "ou=Contacts,dc=domain,dc=com"; >>> bindDN = "[email protected]"; >>> bindPassword = password; >>> mapping = { >>> mozillaworkurl = ("wWWHomePage", "mozillaworkurl"); >>> mozillaworkstreet2 = streetAddress; >>> }; >>> } >>> ); >>> >>> With this setup, i can see the new global addressbook and I can retrieve >>> contact. >>> >>> Now the new contact is not working correclty. When save the new contact >>> I get this in wireshark. >>> >>> >>> Frame 48: 213 bytes on wire (1704 bits), 213 bytes captured (1704 bits) >>> Ethernet II, Src: Vmware_c7:0c:d8 (00:0c:29:c7:0c:d8), Dst: >>> Vmware_cd:22:37 (00:0c:29:cd:22:37) >>> Internet Protocol Version 4, Src: 10.0.1.50, Dst: 10.0.1.45 >>> Transmission Control Protocol, Src Port: 39310, Dst Port: 389, Seq: 56, >>> Ack: 15, Len: 147 >>> Lightweight Directory Access Protocol >>> LDAPMessage addRequest(2) >>> "cn=c86-582de600-1-42d8b100,ou=contacts,dc=domain,dc=com" >>> messageID: 2 >>> protocolOp: addRequest (8) >>> addRequest >>> entry: >>> cn=c86-582de600-1-42d8b100,ou=contacts,dc=domain,dc=com >>> attributes: 2 items >>> AttributeList item cn >>> type: cn >>> vals: 1 item >>> AttributeList item objectClass >>> type: objectClass >>> vals: 1 item >>> [Response In: 50] >>> >>> In my LDAP server I see the new user as c86-582de600-1-42d8b100 instead >>> of the Display Name. >>> >>> I don't see the email in the request. >>> >>> Anybody can help me with the config ? >>> >> I assume, that the imported address card has a UID attribute set. >> You specify, that UIDFieldName is cn, therefore it imports the UID >> into cn. >> You should use another field for UID, which one depends on your used >> objectClass "contact". >> > Probably as you see, i'm not very comfortable with the addressbook in > LDAP. How I should set the SOGoUserSources correctly to be able to > import a new contact in my LDAP ? > > I want to be able to use all the field in the Sogo web interface to do > it. I have read many tutorial, but all thoses tutorial are (I think) > only for reading the LDAP addressbook. I have not found any example > when using the modifiers entry in the SOGoUserSources. > > Is there any documentation that explain what field need to be filled to > get this work ? >
With >>> objectClasses = contact; you define, that every contact will be created as objectClass "contact". That is not a standard objectClass I know of. Your settings in sogo.conf depend on that objectClass. You should check the schema definition of that objectClass in order to find a suitable attribute for uid and set it in "UIDFieldName". For all the other fields find the names of the attributes in your schema and then map those in "mapping". (Or send us that schema for help) Just as info, SOGo uses internally the Mozilla adressbook schema: https://wiki.mozilla.org/MailNews:Mozilla_LDAP_Address_Book_Schema Kind regards, Christian Mack -- Christian Mack Universität Konstanz Kommunikations-, Informations-, Medienzentrum (KIM) Abteilung Basisdienste 78457 Konstanz +49 7531 88-4416
smime.p7s
Description: S/MIME Cryptographic Signature
