active directory - LDAP ModifyAttributes by email -
I need to modify attributes on an existing record in LDAP. I think TI can get the record:
ctx.modifyAttributes (CN = Blue, CN = User, DC = EF, DC = COM "), this is the only way to see.
But I need to get it from email (or login for that matter). I have tried many forms but got the naming exception For example:
ctx.modifyAttributes (& objectClass = user) (mail = jblow *)), cn = user, DC = foo, DC = com) Invalid name exception: (& amp; (objectClass = user) (mail = jblow *)), cn = user, DC = foo, DC = com: [LDAP] : Error code 34 - 0000208 F: Name ARR: DSID-031001BA, Issue 2006 (BAD_NAME), Data 8349, Best Mail: '(& Object Class = User) (Mail = JW * *), CN = User, DC = EFU, DC = COM, Any suggestions would be greatly appreciated.
You can not provide a search filter for the modified operation. Shows you the first example of your full DN.
Therefore, you must first complete the DN of the object of interest in the base DN of CN = user, DC = FU, DC = COM in (mail = JB low *).
Then you can modify your based on the complete DN.
Comments
Post a Comment