Re: Re: [SOGo] LDAP address book from active directory - show all fields -> SearchFieldNames
Hi, Now it works! Thank you very much! Kind Regards, Outlander -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] LDAP address book from active directory - show all fields -> SearchFieldNames
Hi, yes i solved it. I had wrongly writen syntax. Francis helped me: mapping is a dictionary, not an array of strings. mapping = { o = company; ou = department; }; Mine active directory 2003 - mappings: mapping = { mozillaworkurl = wWWHomePage; o = company; ou = department; street = streetAddress; }; from .GNUstepDefaults: mapping o company ou department mozillaworkurl wWWHomePage street streetAddress Do you have same syntax (key, dict, ...) in .GNUstepDefaults? Kind Regards, Martin Krpata Dne 9.5.2013 09:50, theoutlan...@o2.pl napsal(a): Hi, I also have a problem with using the "mapping". Were you able to solve it? I have tried in various ways to add this feature but I always get the error "NAME: NSInvalidArgumentException REASON: GSMutableArray (instance) does not recognize AllKeys INFO: (null)" and the address book no longer works. After some time, the whole sogo crashes. Kind Regards, Outlander -- users@sogo.nu https://inverse.ca/sogo/lists
Re: Re: [SOGo] LDAP address book from active directory - show all fields -> SearchFieldNames
Hi, I also have a problem with using the "mapping". Were you able to solve it? I have tried in various ways to add this feature but I always get the error "NAME: NSInvalidArgumentException REASON: GSMutableArray (instance) does not recognize AllKeys INFO: (null)" and the address book no longer works. After some time, the whole sogo crashes. Kind Regards, Outlander -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] LDAP address book from active directory - show all fields -> SearchFieldNames
Hi Francis, thank you very much, it is working now. Martin Krpata Dne 1.4.2013 14:08, Francis Lachapelle napsal(a): Hi Martin On 2013-03-28, at 9:37 AM, Martin Krpata wrote: thank you for your answer, it is in documentation... My bad. But it is not working to me, please can you check my syntax? I added to usersource like this: { CNFieldName = cn; IDFieldName = cn; SearchFieldNames = ( sn, displayName, telephoneNumber, mobile, facsimileTelephoneNumber, homePhone, pager, ipPhone, wWWHomePage, title, streetAddress, st, postOfficeBox, postalCode, physicalDeliveryOfficeName, description, countryCode, co, department, company ); UIDFieldName = sAMAccountName; baseDN = "DC=OU-NEM,DC=CZ"; bindDN = "s...@ou-nem.cz"; bindFields = ( sAMAccountName ); bindPassword = deleted; canAuthenticate = NO; displayName = "Active Directory"; filter = " objectClass = user AND mail = * "; hostname = 192.168.89.244; id = directory; isAddressBook = YES; mapping = ( "o = company", "ou = department" ); "mapping" is a dictionary, not an array of strings. mapping = { o = company; ou = department; }; port = 389; scope = SUB; type = ldap; } but, it is not working. I have wrong syntax? Ldap does not find anything and waited too long for answer. in defaults write sogod SOGoUserSources '( { ... mapping = ("o = company", "ou = department"); } )' sogo.log: Mar 28 14:35:28 sogod [31669]: [ERROR] <0x0x7f118fe2e630[NGLdapAttribute]> cound not convert value of objectSid to string Mar 28 14:35:28 sogod [31669]: [ERROR] <0x0x7f118fd28de0[NGLdapAttribute]> cound not convert value of userCertificate to string Mar 28 14:35:28 sogod [31669]: [ERROR] <0x0x7f118fe2db70[NGLdapAttribute]> cound not convert value of objectGUID to string EXCEPTION: NAME:NSInvalidArgumentException REASON:GSMutableArray(instance) does not recognize allKeys INFO:(n$ Mar 28 14:35:28 sogod [31640]: <0x0x7f118fb87ab0[WOWatchDogChild]> child 31669 exited Mar 28 14:35:28 sogod [31640]: <0x0x7f118fb87ab0[WOWatchDogChild]> (terminated due to signal 6) Mar 28 14:35:28 sogod [31640]: <0x0x7f118fb87ab0[WOWatchDogChild]> avoiding to respawn child before 2013-03-28 14:35:33 +0100 S pozdravem Martin Krpata, DiS. Oddělení IT Orlickoústecká nemocnice, a.s. Dne 28.3.2013 13:29, Francis Lachapelle napsal(a): Hi Martin On 2013-03-28, at 2:36 AM, Martin Krpata wrote: i would like to use address book from Active Directory and it's look like that some fields have another name and cannot be showed in address book. Like for example wWWHomePage, department, company. These names of fields are in Active Directory 2003 LDAP. I tryed fill sogo contact and export to ldif. It has some another field names that come from LDAP Active Directory, for example: AD wWWHomePage / LDIF mozillahomeurl AD company / LDIF o AD department / LDIF ou You can add a mapping parameter to your users source: mapping = { o = company; ou = department; mozillahomeur = wWWHomePage; }; It is possible to enable field translation, or say to sogo get right fields? my config: { CNFieldName = cn; IDFieldName = cn; SearchFieldNames = ( sn, displayName, telephoneNumber, mobile, facsimileTelephoneNumber, homePhone, pager, ipPhone, wWWHomePage, title, streetAddress, st, postOfficeBox, postalCode, physicalDeliveryOfficeName, description, countryCode, co, department, company ); UIDFieldName = sAMAccountName; baseDN = "DC=OU-NEM,DC=CZ"; bindDN = "s...@ou-nem.cz" ; bindFields = ( sAMAccountName ); bindPassword = deleted; canAuthenticate = NO; displayName = "Active Directory"; filter = " objectClass = user AND mail = ''*'' "; hostname = 192.168.89.244; id = directory; isAddressBook = YES; port = 389; scope = SUB; type = ldap; } http://imageshack.us/photo/my-images/571/sogoaddressbookfromad.png/ -- S pozdravem Martin Krpata, DiS. Oddělení IT Orlickoústecká nemocnice, a.s. -- flachape...@inverse.ca :: +1.514.755.3640 :: http://www.inverse.ca Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence (http://packetfence.org) -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] LDAP address book from active directory - show all fields -> SearchFieldNames
Hi Martin On 2013-03-28, at 9:37 AM, Martin Krpata wrote: > thank you for your answer, it is in documentation... My bad. But it is not > working to me, please can you check my syntax? > > I added to usersource like this: > { > CNFieldName = cn; > IDFieldName = cn; > SearchFieldNames = ( > sn, > displayName, > telephoneNumber, > mobile, > facsimileTelephoneNumber, > homePhone, > pager, > ipPhone, > wWWHomePage, > title, > streetAddress, > st, > postOfficeBox, > postalCode, > physicalDeliveryOfficeName, > description, > countryCode, > co, > department, > company > ); > UIDFieldName = sAMAccountName; > baseDN = "DC=OU-NEM,DC=CZ"; > bindDN = "s...@ou-nem.cz"; > bindFields = ( > sAMAccountName > ); > bindPassword = deleted; > canAuthenticate = NO; > displayName = "Active Directory"; > filter = " objectClass = user AND mail = * "; > hostname = 192.168.89.244; > id = directory; > isAddressBook = YES; > mapping = ( > "o = company", > "ou = department" > ); "mapping" is a dictionary, not an array of strings. mapping = { o = company; ou = department; }; > port = 389; > scope = SUB; > type = ldap; > } > > but, it is not working. I have wrong syntax? Ldap does not find anything and > waited too long for answer. > in defaults write sogod SOGoUserSources '( { ... mapping = ("o = > company", "ou = department"); } )' > > sogo.log: > Mar 28 14:35:28 sogod [31669]: [ERROR] <0x0x7f118fe2e630[NGLdapAttribute]> > cound not convert value of objectSid to string > Mar 28 14:35:28 sogod [31669]: [ERROR] <0x0x7f118fd28de0[NGLdapAttribute]> > cound not convert value of userCertificate to string > Mar 28 14:35:28 sogod [31669]: [ERROR] <0x0x7f118fe2db70[NGLdapAttribute]> > cound not convert value of objectGUID to string > EXCEPTION: NAME:NSInvalidArgumentException > REASON:GSMutableArray(instance) does not recognize allKeys INFO:(n$ > Mar 28 14:35:28 sogod [31640]: <0x0x7f118fb87ab0[WOWatchDogChild]> child > 31669 exited > Mar 28 14:35:28 sogod [31640]: <0x0x7f118fb87ab0[WOWatchDogChild]> > (terminated due to signal 6) > Mar 28 14:35:28 sogod [31640]: <0x0x7f118fb87ab0[WOWatchDogChild]> avoiding > to respawn child before 2013-03-28 14:35:33 +0100 > > S pozdravem > Martin Krpata, DiS. > Oddělení IT > Orlickoústecká nemocnice, a.s. > > > Dne 28.3.2013 13:29, Francis Lachapelle napsal(a): >> Hi Martin >> >> On 2013-03-28, at 2:36 AM, Martin Krpata >> >> wrote: >> >> >>> i would like to use address book from Active Directory and it's look like >>> that some fields have another name and cannot be showed in address book. >>> Like for example wWWHomePage, department, company. These names of fields >>> are in Active Directory 2003 LDAP. >>> >>> I tryed fill sogo contact and export to ldif. It has some another field >>> names that come from LDAP Active Directory, for example: >>> AD wWWHomePage / LDIF mozillahomeurl >>> AD company / LDIF o >>> AD department / LDIF ou >>> >> You can add a mapping parameter to your users source: >> >> mapping = { >> o = company; >> ou = department; >> mozillahomeur = wWWHomePage; >> }; >> >> >>> It is possible to enable field translation, or say to sogo get right fields? >>> >>> my config: >>> { >>> CNFieldName = cn; >>> IDFieldName = cn; >>> SearchFieldNames = ( >>> sn, >>> displayName, >>> telephoneNumber, >>> mobile, >>> facsimileTelephoneNumber, >>> homePhone, >>> pager, >>> ipPhone, >>> wWWHomePage, >>> title, >>> streetAddress, >>> st, >>> postOfficeBox, >>> postalCode, >>> physicalDeliveryOfficeName, >>> description, >>> countryCode, >>> co, >>> department, >>> company >>> ); >>> UIDFieldName = sAMAccountName; >>> baseDN = "DC=OU-NEM,DC=CZ"; >>> bindDN = >>> "s...@ou-nem.cz" >>> ; >>> bindFields = ( >>> sAMAccountName >>> ); >>> bindPassword = deleted; >>> canAuthenticate = NO; >>> displayName = "Active Directory"; >>> filter = " objectClass = user AND mail = ''*'' "; >>> hostname = 192.168.89.244; >>> id = directory; >>> isAddressBook = YES; >>> port = 389; >>> scope = SUB; >>> type = ldap; >>> } >>> >>> >>> http://imageshack.us/photo/my-images/571/sogoaddressbookfromad.png/ >>> >>> >>> -- >>> S pozdravem >>> Martin Krpata, DiS. >>> Oddělení IT >>> Orlickoústecká nemocnice, a.s. -- flachape...@inverse.ca :: +1.514.755.3640 :: http://www.inverse.ca Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence (http://packetfence.org) -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] LDAP address book from active directory - show all fields -> SearchFieldNames
Hi everybody, i cannot found on google an example with ldap address book with mapping command. In documentation is: /mapping a dictionary that maps contact fields, as defined by the // //inetOrgPerson and mozillaAbSchema schemas, to the // //fields in user by the active schemas of the LDAP source. // //Each entry must have a field name as key and an array of // //strings as value. This enables actual fields to be mapped // //one after another when fetching contact informations./ Anybody please send me working example. Thanks, have a nice day. Martin Krpata Dne 28.3.2013 14:37, Martin Krpata napsal(a): Hi, thank you for your answer, it is in documentation... My bad. But it is not working to me, please can you check my syntax? I added to usersource like this: { CNFieldName = cn; IDFieldName = cn; SearchFieldNames = ( sn, displayName, telephoneNumber, mobile, facsimileTelephoneNumber, homePhone, pager, ipPhone, wWWHomePage, title, streetAddress, st, postOfficeBox, postalCode, physicalDeliveryOfficeName, description, countryCode, co, department, company ); UIDFieldName = sAMAccountName; baseDN = "DC=OU-NEM,DC=CZ"; bindDN = "s...@ou-nem.cz"; bindFields = ( sAMAccountName ); bindPassword = deleted; canAuthenticate = NO; displayName = "Active Directory"; filter = " objectClass = user AND mail = * "; hostname = 192.168.89.244; id = directory; isAddressBook = YES; *mapping = (** **"o = company",** **"ou = department"** **);** *port = 389; scope = SUB; type = ldap; } but, it is not working. I have wrong syntax? Ldap does not find anything and waited too long for answer. in defaults write sogod SOGoUserSources '( { ... mapping = ("o = company", "ou = department"); } )' sogo.log: Mar 28 14:35:28 sogod [31669]: [ERROR] <0x0x7f118fe2e630[NGLdapAttribute]> cound not convert value of objectSid to string Mar 28 14:35:28 sogod [31669]: [ERROR] <0x0x7f118fd28de0[NGLdapAttribute]> cound not convert value of userCertificate to string Mar 28 14:35:28 sogod [31669]: [ERROR] <0x0x7f118fe2db70[NGLdapAttribute]> cound not convert value of objectGUID to string EXCEPTION: *NAME:NSInvalidArgumentException* REASON:GSMutableArray(instance) *does not recognize allKeys* INFO:(n$ Mar 28 14:35:28 sogod [31640]: <0x0x7f118fb87ab0[WOWatchDogChild]> child 31669 exited Mar 28 14:35:28 sogod [31640]: <0x0x7f118fb87ab0[WOWatchDogChild]> (terminated due to signal 6) Mar 28 14:35:28 sogod [31640]: <0x0x7f118fb87ab0[WOWatchDogChild]> avoiding to respawn child before 2013-03-28 14:35:33 +0100 S pozdravem Martin Krpata, DiS. Oddělení IT Orlickoústecká nemocnice, a.s. Dne 28.3.2013 13:29, Francis Lachapelle napsal(a): Hi Martin On 2013-03-28, at 2:36 AM, Martin Krpata wrote: i would like to use address book from Active Directory and it's look like that some fields have another name and cannot be showed in address book. Like for example wWWHomePage, department, company. These names of fields are in Active Directory 2003 LDAP. I tryed fill sogo contact and export to ldif. It has some another field names that come from LDAP Active Directory, for example: AD wWWHomePage / LDIF mozillahomeurl AD company / LDIF o AD department / LDIF ou You can add a mapping parameter to your users source: mapping = { o = company; ou = department; mozillahomeur = wWWHomePage; }; It is possible to enable field translation, or say to sogo get right fields? my config: { CNFieldName = cn; IDFieldName = cn; SearchFieldNames = ( sn, displayName, telephoneNumber, mobile, facsimileTelephoneNumber, homePhone, pager, ipPhone, wWWHomePage, title, streetAddress, st, postOfficeBox, postalCode, physicalDeliveryOfficeName, description, countryCode, co, department, company ); UIDFieldName = sAMAccountName; baseDN = "DC=OU-NEM,DC=CZ"; bindDN ="s...@ou-nem.cz"; bindFields = ( sAMAccountName ); bindPassword = deleted; canAuthenticate = NO; displayName = "Active Directory"; filter = " objectClass = user AND mail = ''*'' "; hostname = 192.168.89.244; id = directory; isAddressBook = YES; port = 389; scope = SUB; type = ldap; } http://imageshack.us/photo/my-images/571/sogoaddressbookfromad.png/ -- S pozdravem Martin Krpata, DiS. Oddělení IT Orlickoústecká nemocnice, a.s. -- flachape...@inverse.ca :: +1.514.755.3640 ::http://www.inverse.ca Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence (http://packetfence.org) -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] LDAP address book from active directory - show all fields -> SearchFieldNames
Hi, thank you for your answer, it is in documentation... My bad. But it is not working to me, please can you check my syntax? I added to usersource like this: { CNFieldName = cn; IDFieldName = cn; SearchFieldNames = ( sn, displayName, telephoneNumber, mobile, facsimileTelephoneNumber, homePhone, pager, ipPhone, wWWHomePage, title, streetAddress, st, postOfficeBox, postalCode, physicalDeliveryOfficeName, description, countryCode, co, department, company ); UIDFieldName = sAMAccountName; baseDN = "DC=OU-NEM,DC=CZ"; bindDN = "s...@ou-nem.cz"; bindFields = ( sAMAccountName ); bindPassword = deleted; canAuthenticate = NO; displayName = "Active Directory"; filter = " objectClass = user AND mail = * "; hostname = 192.168.89.244; id = directory; isAddressBook = YES; *mapping = (** **"o = company",** **"ou = department"** **);** *port = 389; scope = SUB; type = ldap; } but, it is not working. I have wrong syntax? Ldap does not find anything and waited too long for answer. in defaults write sogod SOGoUserSources '( { ... mapping = ("o = company", "ou = department"); } )' sogo.log: Mar 28 14:35:28 sogod [31669]: [ERROR] <0x0x7f118fe2e630[NGLdapAttribute]> cound not convert value of objectSid to string Mar 28 14:35:28 sogod [31669]: [ERROR] <0x0x7f118fd28de0[NGLdapAttribute]> cound not convert value of userCertificate to string Mar 28 14:35:28 sogod [31669]: [ERROR] <0x0x7f118fe2db70[NGLdapAttribute]> cound not convert value of objectGUID to string EXCEPTION: *NAME:NSInvalidArgumentException* REASON:GSMutableArray(instance) *does not recognize allKeys* INFO:(n$ Mar 28 14:35:28 sogod [31640]: <0x0x7f118fb87ab0[WOWatchDogChild]> child 31669 exited Mar 28 14:35:28 sogod [31640]: <0x0x7f118fb87ab0[WOWatchDogChild]> (terminated due to signal 6) Mar 28 14:35:28 sogod [31640]: <0x0x7f118fb87ab0[WOWatchDogChild]> avoiding to respawn child before 2013-03-28 14:35:33 +0100 S pozdravem Martin Krpata, DiS. Oddělení IT Orlickoústecká nemocnice, a.s. Dne 28.3.2013 13:29, Francis Lachapelle napsal(a): Hi Martin On 2013-03-28, at 2:36 AM, Martin Krpata wrote: i would like to use address book from Active Directory and it's look like that some fields have another name and cannot be showed in address book. Like for example wWWHomePage, department, company. These names of fields are in Active Directory 2003 LDAP. I tryed fill sogo contact and export to ldif. It has some another field names that come from LDAP Active Directory, for example: AD wWWHomePage / LDIF mozillahomeurl AD company / LDIF o AD department / LDIF ou You can add a mapping parameter to your users source: mapping = { o = company; ou = department; mozillahomeur = wWWHomePage; }; It is possible to enable field translation, or say to sogo get right fields? my config: { CNFieldName = cn; IDFieldName = cn; SearchFieldNames = ( sn, displayName, telephoneNumber, mobile, facsimileTelephoneNumber, homePhone, pager, ipPhone, wWWHomePage, title, streetAddress, st, postOfficeBox, postalCode, physicalDeliveryOfficeName, description, countryCode, co, department, company ); UIDFieldName = sAMAccountName; baseDN = "DC=OU-NEM,DC=CZ"; bindDN = "s...@ou-nem.cz"; bindFields = ( sAMAccountName ); bindPassword = deleted; canAuthenticate = NO; displayName = "Active Directory"; filter = " objectClass = user AND mail = ''*'' "; hostname = 192.168.89.244; id = directory; isAddressBook = YES; port = 389; scope = SUB; type = ldap; } http://imageshack.us/photo/my-images/571/sogoaddressbookfromad.png/ -- S pozdravem Martin Krpata, DiS. Oddělení IT Orlickoústecká nemocnice, a.s. -- flachape...@inverse.ca :: +1.514.755.3640 :: http://www.inverse.ca Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence (http://packetfence.org) -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] LDAP address book from active directory - show all fields -> SearchFieldNames
Hi Martin On 2013-03-28, at 2:36 AM, Martin Krpata wrote: > i would like to use address book from Active Directory and it's look like > that some fields have another name and cannot be showed in address book. Like > for example wWWHomePage, department, company. These names of fields are in > Active Directory 2003 LDAP. > > I tryed fill sogo contact and export to ldif. It has some another field names > that come from LDAP Active Directory, for example: > AD wWWHomePage / LDIF mozillahomeurl > AD company / LDIF o > AD department / LDIF ou You can add a mapping parameter to your users source: mapping = { o = company; ou = department; mozillahomeur = wWWHomePage; }; > It is possible to enable field translation, or say to sogo get right fields? > > my config: > { >CNFieldName = cn; >IDFieldName = cn; >SearchFieldNames = ( >sn, >displayName, >telephoneNumber, >mobile, >facsimileTelephoneNumber, >homePhone, >pager, >ipPhone, >wWWHomePage, >title, >streetAddress, >st, >postOfficeBox, >postalCode, >physicalDeliveryOfficeName, >description, >countryCode, >co, >department, >company >); >UIDFieldName = sAMAccountName; >baseDN = "DC=OU-NEM,DC=CZ"; >bindDN = "s...@ou-nem.cz"; >bindFields = ( >sAMAccountName >); >bindPassword = deleted; >canAuthenticate = NO; >displayName = "Active Directory"; >filter = " objectClass = user AND mail = ''*'' "; >hostname = 192.168.89.244; >id = directory; >isAddressBook = YES; >port = 389; >scope = SUB; >type = ldap; >} > > http://imageshack.us/photo/my-images/571/sogoaddressbookfromad.png/ > > -- > S pozdravem > Martin Krpata, DiS. > Oddělení IT > Orlickoústecká nemocnice, a.s. -- flachape...@inverse.ca :: +1.514.755.3640 :: http://www.inverse.ca Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence (http://packetfence.org) -- users@sogo.nu https://inverse.ca/sogo/lists