Hi, I'm trying to check the synchronization between eDirectory and
Active Directory for multiple users. I want to check the synchronization
status as does iManager
To achieve this goal I'm using CheckObjectPasswordRequest with this
java code:

LDAPConnection lc = new LDAPConnection();
try {
lc.connect( "172.17.5.100", 389 );
try {
lc.bind( LDAPConnection.LDAP_V3, loginDN,
password.getBytes("UTF8"));
} catch (UnsupportedEncodingException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
} catch (Exception e){}

CheckObjectPasswordRequest checkPwd= new
CheckObjectPasswordRequest("cn=My Username,ou=users,o=acme","cn=Active
Directory,cn=DriverSet,o=system");
LDAPExtendedResponse resp = lc.extendedOperation(checkPwd);
System.out.println(resp.toString());
System.out.println(resp.getID());
System.out.println(resp.getResultCode());
System.out.println(resp.getMatchedDN());
System.out.println(resp.getMessageID());

ASN1OctetString localASN1OctetString = new
ASN1OctetString(resp.getValue());
System.out.println(localASN1OctetString.toString() );

I've tried as LoginDN both the admin and the same user for which I'm
requesting the check password

Everytime I've a response with resultCode 0 (Success), as explained in
http://www.ietf.org/rfc/rfc2251.txt

This is what eDirectory answers to my code.


resp.toString(): LDAPExtendedResponse(2): [UNIVERSAL 16] SEQUENCE: {
[UNIVERSAL 2] INTEGER: 2, [APPLICATION 24] SEQUENCE: { [UNIVERSAL 10]
ENUMERATED: 0, [UNIVERSAL 4] OCTET STRING: , [UNIVERSAL 4] OCTET STRING:
, [UNIVERSAL 4] OCTET STRING: 2.16.840.1.113719.1.14.100.38, [UNIVERSAL
4] OCTET STRING: 0?□□□□□□?
ID: 2.16.840.1.113719.1.14.100.38
resultCode: 0
MatchedDN:
MessageID: 2
localASN1OctetString.toString(): [UNIVERSAL 4] OCTET STRING:
0?□□□□□□?

What it means? I'm sure that resp.getValue() comes back an
ASN1OctetString but I cannot understand what eDirectory is saying...

Any help is appreciated

Natan


--
nsanson
------------------------------------------------------------------------
nsanson's Profile: http://forums.novell.com/member.php?userid=1637
View this thread: http://forums.novell.com/showthread.php?t=410799