[CentOS] Problems with LDAP

Tue May 8 16:14:32 UTC 2007
Steve Finkelstein <sf at stevefink.net>

Perhaps you should use objectClass: groupofuniquenames

so it might look something such as the following:

dn: cn=futeboladas,ou=futebol,ou=accounts,dc=telbit,dc=pt
cn: futeboladas
objectclass: groupofuniquenames
uniqueMember: uid=mgamito,ou=tim,ou=accounts,dc=telbit,dc=pt
uniqueMember: uid=alopes,ou=tim,ou=accounts,dc=telbit,dc=pt
uniqueMember: uid=tmarto,ou=tim,ou=accounts,dc=telbit,dc=pt

HTH

- sf

Mário Gamito wrote:
> Hi,
> 
> I'm using OpenLDAP in CentOS 4.4
> 
> I'm trying to create a grou of users:
> 
> # Grupos do TIM
> dn: ou=futebol,ou=accounts,dc=telbit,dc=pt
> objectClass: organizationalUnit
> description: Grupo de Futebol
> ou: futebol
> 
> # Grupo do futebol
> dn: uid=futeboladas,ou=futebol,ou=accounts,dc=telbit,dc=pt
> objectClass: top
> uid: futeboladas
> objectClass: groupOfNames
> cn: Futeboladas
> member: uid=mgamito,ou=tim,ou=accounts,dc=telbit,dc=pt
> member: uid=alopes,ou=tim,ou=accounts,dc=telbit,dc=pt
> member: uid=tmarto,ou=tim,ou=accounts,dc=telbit,dc=pt
> cn: Futebol
> 
> as it is, with "uid: futeboladas" i get the error:
> "adding new entry "uid=futeboladas,ou=futebol,ou=accounts,dc=telbit,dc=pt"
> ldap_add: Object class violation (65)
>         additional info: attribute 'uid' not allowed
> "
> 
> If i remove the uid entry i get:
> "adding new entry "uid=futeboladas,ou=futebol,ou=accounts,dc=telbit,dc=pt"
> ldap_add: Naming violation (64)
>         additional info: naming attribute 'uid' is not present in entry
> "
> 
> The mind boggles :(
> 
> Any help would be appreciated.
> 
> Warm Regards