[JNDI] Ajout/Création d'un objet sur LDAP (cn)
Bonjour, j'essai de créer un objet cn dans mon LDAP en utilisant jndi :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
DirContext context = getContext();
/* Prepare the Object to create */
Attributes attributes = new BasicAttributes(true);
Attribute attribut = new BasicAttribute("description");
attribut.add("Groupe daccès pour le projet " + projectName);
attributes.put(attribut);
/* Create the object */
context.bind("CN=G_SVN_Tests,OU=SVN Groups, OU=Groups,DC=xxx,DC=net", null, attributes);
/* Close the context */
context.close(); |
mais je me retrouve avec cette erreur, sans réussir à comprendre pourquoi?
mon chemin et mon contexte sont bon, je pense que ça viens de la façon dont j'essaie d'ajouter les attributs.
Code:
1 2
|
javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - 0000207B: UpdErr: DSID-03050FB5, problem 6002 (OBJ_CLASS_VIOLATION), data 0 ] remaining name 'CN=G_SVN_Tests,OU=SVN Groups, OU=Groups,DC=xxx,DC=net' |
Quelqu'un a une idée?