Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LDAPException.INSUFFICIENT_ACCESS_RIGHTS

31 views
Skip to first unread message

anita....@gmail.com

unread,
May 15, 2007, 5:49:11 PM5/15/07
to

hi!

i`m trying to change the value of an attribute but it throws an
Exception: INSUFFICIENT_ACCESS_RIGHTS.
i`m connected with an user administrator. What could i do?

public void modificarapellido(){
String dn = "cn=aperez1, cn=Users, dc=co, dc=empresa, dc=com";
LDAPAttribute attruid = new LDAPAttribute( "sn","Perez1");
LDAPModification mod = new
LDAPModification(LDAPModification.REPLACE,attruid);
try
{
lc.connect( ldapHost, ldapPort);
lc.modify( dn, mod );
System.out.println("Modifico el apellido");
}
catch (LDAPException e)
{
System.out.println("No se puede modificar el apellido");
e.printStackTrace();
}
}

No se puede modificar el apellido
LDAPException: Las Derechas De Acceso Escasas (50) Las Derechas De
Acceso Escasas
LDAPException: Matched DN:
at com.novell.ldap.LDAPResponse.getResultException(Unknown Source)
at com.novell.ldap.LDAPResponse.chkResultCode(Unknown Source)
at com.novell.ldap.LDAPConnection.chkResultCode(Unknown Source)
at com.novell.ldap.LDAPConnection.modify(Unknown Source)
at com.novell.ldap.LDAPConnection.modify(Unknown Source)
at com.novell.ldap.LDAPConnection.modify(Unknown Source)
at pruebasOID.pruebaOID.modificarapellido(pruebaOID.java:94)
at pruebasOID.pruebaOID.main(pruebaOID.java:259)
Se desconectó

0 new messages