Re: [SOGo] LDAP address book not visible

2016-05-24 Thread Christian Mack
Hello

Am 23.05.2016 um 17:08 schrieb "Roman Smid" (s...@iba.muni.cz):
> 
> I'm trying to add a LDAP global address book to my SoGo 3.1 installation on
> Ubuntu server, but with no luck. I want to use it only as an address book,
> not for authentication, which is done using MSQL and working well. I have
> added
> 
>   SOGoUserSources = (
> {
>   type = ldap;
>   CNFieldName = cn;
>   UIDFieldName = uid;
>   IDFieldName = uid; // first field of the DN for direct binds
>   bindFields = (uid, cn); // array of fields to use for indirect binds
>   baseDN = "ou=admini,dc=iba,dc=muni,dc=cz";
>   bindDN = "cn=admin,dc=iba,dc=muni,dc=cz";
>   bindPassword = "secret";
>   canAuthenticate = NO;
>   displayName = "Address book";
>   hostname = ldap://127.0.0.1:389;
>   id = adresar;
>   isAddressBook = YES;
>   scope = SUB;
>   userPasswordAlgorithm = ssha;
> }
>   );
> 
> But this source does not show up in the Web UI at all  (no "Address book"
> visible among Global Addressbooks).
> I have enabled the LDAPDebugEnabled option, but nothing concerning LDAP
> appears in the log. 
> What am I doing wrong?
> 

Two possible glitches:
1) "id" must be unique across all SOGoUserSources. Else this entry will
be ignored.
2) You only can use one SOGoUserSources Attribute, but with multiple
entries.

Example:

SOGoUserSources = (
{
CNFieldName = cn;
IDFieldName = uid;
UIDFieldName = uid;
baseDN = "ou=people,,dc=iba,dc=muni,dc=cz";
bindFields = (
uid,
mail
);
canAuthenticate = YES;
displayName = "All users";
hostname = "ldap://127.0.0.1:389;;
id = "source_1";
isAddressBook = YES;
type = ldap;
},
{
type = ldap;
CNFieldName = cn;
UIDFieldName = uid;
IDFieldName = uid; // first field of the DN for direct binds
bindFields = (uid, cn); // array of fields to use for indirect binds
baseDN = "ou=admini,dc=iba,dc=muni,dc=cz";
bindDN = "cn=admin,dc=iba,dc=muni,dc=cz";
bindPassword = "secret";
canAuthenticate = NO;
displayName = "Address book";
hostname = ldap://127.0.0.1:389;
id = "source_2";
isAddressBook = YES;
scope = SUB;
userPasswordAlgorithm = ssha;
}
);


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


[SOGo] LDAP address book not visible

2016-05-23 Thread "Roman Smid"
Hello,
I'm trying to add a LDAP global address book to my SoGo 3.1 installation on
Ubuntu server, but with no luck. I want to use it only as an address book,
not for authentication, which is done using MSQL and working well. I have
added

  SOGoUserSources = (
{
  type = ldap;
  CNFieldName = cn;
  UIDFieldName = uid;
  IDFieldName = uid; // first field of the DN for direct binds
  bindFields = (uid, cn); // array of fields to use for indirect binds
  baseDN = "ou=admini,dc=iba,dc=muni,dc=cz";
  bindDN = "cn=admin,dc=iba,dc=muni,dc=cz";
  bindPassword = "secret";
  canAuthenticate = NO;
  displayName = "Address book";
  hostname = ldap://127.0.0.1:389;
  id = adresar;
  isAddressBook = YES;
  scope = SUB;
  userPasswordAlgorithm = ssha;
}
  );

But this source does not show up in the Web UI at all  (no "Address book"
visible among Global Addressbooks).
I have enabled the LDAPDebugEnabled option, but nothing concerning LDAP
appears in the log. 
What am I doing wrong?
Thanx
Roman


smime.p7s
Description: S/MIME cryptographic signature