Hello Jukka
It seems that name is good because TDI LDAP connector says BAD_NAME
error when the name is not ok.
The following test show the same result for $dn:
TEST1:
LdapConnector.getConnector().removeAllAttributeValues("$dn=
\"CN=Group1,CN=users,DC=test,DC=lan\"", "member");
17:02:00,046 INFO - [LdapConnector] CTGDJQ071E The modification
failed. An exception occurred while tring to remove all the attribute
values: javax.naming.NamingException: [LDAP: error code 1 - 000020D6:
SvcErr: DSID-031007DB, problem 5012 (DIR_ERROR), data 0 ; Remaining
name: '$dn="CN=Group1,CN=users,DC=test,DC=lan"'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3093)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2999)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2806)
at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(LdapCtx.java:1467
TEST2:
LdapConnector.getConnector().removeAllAttributeValues("$dn=CN=Group1,CN=users,DC=test,DC=lan",
"member");
16:59:56,046 INFO - [LdapConnector] CTGDJQ071E The modification
failed. An exception occurred while tring to remove all the attribute
values: javax.naming.InvalidNameException:
$dn=CN=Group1,CN=users,DC=test,DC=lan: [LDAP: error code 34 -
0000208F: NameErr: DSID-031001F7, problem 2006 (BAD_NAME), data 8349,
best match of:
'$dn=CN=Group1,CN=users,DC=test,DC=lan'
Test2 shows BAD_NAME error. So I think that TEST1 filter is ok, also
CN=Group1 filter is ok too.
But why "problem 5012 (DIR_ERROR)" is thrown?
I use TDI 7.1 FP6 and Active Directory on Windows 2008 R2.
Regards
Ramunas