I installed LDAP and phpLDAPadmin following this tutorial, and so far it is working.
Now I am trying to create an entry in the address book with a duplicate email address.
I'm trying to set up contact sharing in outlook, but we have groups of employees that share a common email address.
For example:
[email protected]
. Creating the first contact works, but I cannot create the next contact because the email is already in use.
How I can create multiple contacts with the same email address in LDAP?
Example of my ldif file:
dn: cn=MrA,ou=MyOu,dc=MyDomain,dc=com
cn: MrA
givenname: MrA
mail: [email protected]
objectclass: inetOrgPerson
objectclass: top
sn: Mr
dn: cn=MrB,ou=MyOu,dc=MyDomain,dc=com
cn: MrB
givenname: MrB
mail: [email protected] <= If I don't put email, MrB added successfully
objectclass: inetOrgPerson
objectclass: top
sn: MrB
I tried modifying /etc/ldap/schema/core.schema
and other schema files, but nothing that I did fixed the problem.
FIND IT !!
in /etc/phpldapadmin/config.php
comment this :
//# $servers->setValue('unique','attrs',array('mail','uid','uidNumber'));
and put
$servers->setValue('unique','attrs',array('uid','uidNumber'));
Thanks all :)