Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/02/2010, 01:38
misterdyc
 
Fecha de Ingreso: febrero-2010
Mensajes: 2
Antigüedad: 14 años, 1 mes
Puntos: 0
LDAP renombrar usuario

Buenos días alguien sabe como hacer para renombrar una cuenta de usuario, es decir cambiarle el atributo cn a un usuario. Siempre me ha dejado modificar otros atributos, pero ese no me deja.
Os dejo mi código por si os ayuda algo.Muchas gracias.

Dim ruta As String
ruta = result.Path
Dim entry As New DirectoryEntry(ruta)
entry.Properties("cn").Value = nombre
entry.Properties("mostrarINTRANET").Value = (UCase(intranet.ToString()))
entry.Properties("mostrarORGANIGRAMA").Value = (UCase(org.ToString()))
entry.CommitChanges()
entry.Close()
Return True