|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
ldap
Hello,
I have written file to add an entry in a ldap: <? // PARAMETRES DE CONNEXION $server = "mail.marche.be"; $port = "389"; $racine = "dc=marche, dc=be"; $rootdn = "cn=admin, dc=marche, dc=be"; $rootpw = "secret"; $ds=ldap_connect($server); if ($ds) { $r=ldap_bind($ds,$rootdn,$rootpw); // preparation des données $entry["mailHost"]="citoyen.marche.be"; $entry["mail"]="toto.dupont@marche.be"; $entry["mailMessageStore"]="/var/imap/toto.dupont/"; $entry["mailRoutingAddress"]="toto.dupont@citoyen.marche.be"; $entry["userPassword"]="12345678"; $entry["uid"]="toto.dupont"; $entry["objectClass"][0]="simpleSecurityObject"; $entry["objectClass"][1]="inetLocalMailRecipient"; $entry["objetcClass"][2]="qmailuser"; $entry["mailLocalAddress"]="toto.dupont@marche.be"; // AJOUT DE LA NOUVELLE ENTREE DANS LDAP $r=ldap_add($ds, "ou=Citoyens, ou=People, dc=marche, dc=be", $entry); echo ldap_error($ds); ldap_close($ds); } else { echo "Connexion au serveur LDAP impossible"; } ?> But I have the error messages : Warning: LDAP: add operation could not be completed. in sites/test/html/ldap/ajout2.php on line 46 No such object What does it mean ? What is it of ? Thanks JF JF |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > ldap |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|