Anonymous_User Absent Member.
Absent Member.
347 views

Binding to active directory


windows server 2000

I am trying to bind active directory using jldap

using the following code

String ldapHost = "p8v451.p8451ora.com";

String loginDN = "cn=Administrator,dc=p8451ora,dc=com";
//

String password = "Password123";

String searchBase = "Users";

String searchFilter = "";


LDAPConnection lc = new LDAPConnection();

try {
lc.connect( ldapHost, ldapPort );

lc.bind(ldapVersion, loginDN, password.getBytes("UTF8") );

lc.disconnect();

}



But i got the following error

LDAPException: Invalid Credentials (49) Invalid Credentials
LDAPException: Server Message: 80090308: LdapErr: DSID-0C090334,
comment: AcceptSecurityContext error, data 525, vece



i have a domain called p8451ora.com which hold 'Users' container under
this container
there is Administrator user and i am sure from the pssword


--
matroush
------------------------------------------------------------------------
matroush's Profile: http://forums.novell.com/member.php?userid=103217
View this thread: http://forums.novell.com/showthread.php?t=430803

Labels (1)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Binding to active directory

Shouldn't the loginDN then be?:

cn=Administrator,cn=Users,dc=p8451ora,dc=com

instead of

String loginDN = "cn=Administrator,dc=p8451ora,dc=com";

i have a domain called p8451ora.com which hold 'Users' container under
this container
there is Administrator user

On 25/01/2011 15:06, matroush wrote:
>
> windows server 2000
>
> I am trying to bind active directory using jldap
>
> using the following code
>
> String ldapHost = "p8v451.p8451ora.com";
>
> String loginDN = "cn=Administrator,dc=p8451ora,dc=com";
> //
>
> String password = "Password123";
>
> String searchBase = "Users";
>
> String searchFilter = "";
>
>
> LDAPConnection lc = new LDAPConnection();
>
> try {
> lc.connect( ldapHost, ldapPort );
>
> lc.bind(ldapVersion, loginDN, password.getBytes("UTF8") );
>
> lc.disconnect();
>
> }
>
>
>
> But i got the following error
>
> LDAPException: Invalid Credentials (49) Invalid Credentials
> LDAPException: Server Message: 80090308: LdapErr: DSID-0C090334,
> comment: AcceptSecurityContext error, data 525, vece
>
>
>
> i have a domain called p8451ora.com which hold 'Users' container under
> this container
> there is Administrator user and i am sure from the pssword
>
>

0 Likes
jwilleke Trusted Contributor.
Trusted Contributor.

Re: Binding to active directory

Often the hard part of connecting to AD using LDAP is determining the
FDN of the user to login with.

If you know the samAccountName of the user you can find it using:

dsquery user -samid jim
"CN=Jim Willeke,CN=Users,DC=mad,DC=willeke,DC=com"

Also, checking the list at:
http://ldapwiki.willeke.com/wiki/Common%20Active%20Directory%20Bind%20Errors

Shows "data 525" = ERROR_NO_SUCH_USER (The specified account does not
exist.)

-jim

On 1/25/11 9:42 AM, alekz wrote:
> Shouldn't the loginDN then be?:
>
> cn=Administrator,cn=Users,dc=p8451ora,dc=com
>
> instead of
>
> String loginDN = "cn=Administrator,dc=p8451ora,dc=com";
>
> i have a domain called p8451ora.com which hold 'Users' container under
> this container
> there is Administrator user
>
> On 25/01/2011 15:06, matroush wrote:
>>
>> windows server 2000
>>
>> I am trying to bind active directory using jldap
>>
>> using the following code
>>
>> String ldapHost = "p8v451.p8451ora.com";
>>
>> String loginDN = "cn=Administrator,dc=p8451ora,dc=com";
>> //
>>
>> String password = "Password123";
>>
>> String searchBase = "Users";
>>
>> String searchFilter = "";
>>
>>
>> LDAPConnection lc = new LDAPConnection();
>>
>> try {
>> lc.connect( ldapHost, ldapPort );
>>
>> lc.bind(ldapVersion, loginDN, password.getBytes("UTF8") );
>>
>> lc.disconnect();
>>
>> }
>>
>>
>>
>> But i got the following error
>>
>> LDAPException: Invalid Credentials (49) Invalid Credentials
>> LDAPException: Server Message: 80090308: LdapErr: DSID-0C090334,
>> comment: AcceptSecurityContext error, data 525, vece
>>
>>
>>
>> i have a domain called p8451ora.com which hold 'Users' container under
>> this container
>> there is Administrator user and i am sure from the pssword
>>
>>

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.