General discussion on installation and configuration of SOGo

Text archives Help


Re: [SOGo] LDAP address book from active directory - show all fields -> SearchFieldNames


Chronological Thread 
  • From: Martin Krpata < >
  • To:
  • Subject: Re: [SOGo] LDAP address book from active directory - show all fields -> SearchFieldNames
  • Date: Tue, 02 Apr 2013 12:24:06 +0200
  • Organization: Orlickoústecká nemocnice, a.s.

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 =
" ";
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: <NSException: 0x7f118fe37be0> 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 =
" "
;
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.
--

:: +1.514.755.3640 :: http://www.inverse.ca
Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence
(http://packetfence.org)





Archive powered by MHonArc 2.6.18.

Top of page