I am trying to change the user password via JNDI, but I am getting the error below.
javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - record uid = yiwei, ou = Administrator, o = SID, dc = QuizPortal cannot be changed because the resulting record violated the server diagram: record uid = yiwei, ou = Administrator, o = SID, dc = QuizPortal violates the configuration of the directory server schema because it includes an attribute user password that is not allowed by any of the object classes defined in this entry];
Below is the code.
public class ModifyAtt { public static String INITCTX = "com.sun.jndi.ldap.LdapCtxFactory"; public static String MY_HOST = "ldap://KhooGP-Comp1:1389/dc=QuizPortal"; public static String MGR_DN = "cn=Directory Manager"; public static String MGR_PW = "password"; public static void main(String[] args) {
Any idea why? Thank you very much in advance.
Kevin
java passwords ldap jndi
Nivek
source share