You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Maxim Solodovnik <so...@gmail.com> on 2014/06/27 17:23:06 UTC
[LDAP API] secure connection example
Hello All,
I would like to ask a question regarding establishing secure LDAP
connection using Java API (1.0.0-M22
<http://directory.apache.org/api/downloads.html>)
http://directory.apache.org/api/user-guide/5-ldap-security.html contains no
documentation
Here is error log: http://pastebin.com/buKTicGu
I would appreciate any help
--
WBR
Maxim aka solomax
Re: [LDAP API] secure connection example
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 27/06/2014 18:29, Maxim Solodovnik a écrit :
> Thanks for the quick response
> This was my first idea
>
> Unfortunately I have no environment to test :(
> The user, reported this says:
> "thank you for your hints. I will have a look at it. The thing is: with
> moodle & mahara (php software) it works with all the ldaps settings. ;-("
>
> The code I'm using: is here
> https://svn.apache.org/viewvc/openmeetings/branches/3.0.x/src/main/java/org/apache/openmeetings/ldap/LdapLoginManagement.java?view=markup
> line ~228
>
> Maybe I'm using API somehow wrong? or additional keystores should be added
Hmmm...
If it works with PHP, and if it's a secured connection, I would suggest
that the user try without SSL to see if it works with the same
users/password.
If so, it may be a pb with the certificate being used.
Re: [LDAP API] secure connection example
Posted by Maxim Solodovnik <so...@gmail.com>.
Thanks for the quick response
This was my first idea
Unfortunately I have no environment to test :(
The user, reported this says:
"thank you for your hints. I will have a look at it. The thing is: with
moodle & mahara (php software) it works with all the ldaps settings. ;-("
The code I'm using: is here
https://svn.apache.org/viewvc/openmeetings/branches/3.0.x/src/main/java/org/apache/openmeetings/ldap/LdapLoginManagement.java?view=markup
line ~228
Maybe I'm using API somehow wrong? or additional keystores should be added
...
Thanks in advance
On 27 June 2014 23:15, Emmanuel Lécharny <el...@gmail.com> wrote:
> Le 27/06/2014 17:23, Maxim Solodovnik a écrit :
> > Hello All,
> >
> > I would like to ask a question regarding establishing secure LDAP
> > connection using Java API (1.0.0-M22
> > <http://directory.apache.org/api/downloads.html>)
> > http://directory.apache.org/api/user-guide/5-ldap-security.html
> contains no
> > documentation
> >
> > Here is error log: http://pastebin.com/buKTicGu
>
> Mist certainly an invalid password, or an unknown user :
>
> LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e,
> v1db1 -> (unknown username or bad password)
>
> (
> http://social.technet.microsoft.com/Forums/windowsserver/en-US/c1d8d706-a506-4973-9542-1e88a2a66ac0/ad-lds-and-locked-out-accounts-response-codes?forum=winserverDS
> )
>
>
>
>
--
WBR
Maxim aka solomax
Re: [LDAP API] secure connection example
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 27/06/2014 17:23, Maxim Solodovnik a écrit :
> Hello All,
>
> I would like to ask a question regarding establishing secure LDAP
> connection using Java API (1.0.0-M22
> <http://directory.apache.org/api/downloads.html>)
> http://directory.apache.org/api/user-guide/5-ldap-security.html contains no
> documentation
>
> Here is error log: http://pastebin.com/buKTicGu
Mist certainly an invalid password, or an unknown user :
LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e,
v1db1 -> (unknown username or bad password)
(http://social.technet.microsoft.com/Forums/windowsserver/en-US/c1d8d706-a506-4973-9542-1e88a2a66ac0/ad-lds-and-locked-out-accounts-response-codes?forum=winserverDS)