AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

authentification ldap

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Language Java (Français)
View previous topic :: View next topic  
Author Message
prioux@ensma.fr
Guest





PostPosted: Wed May 09, 2007 5:53 pm    Post subject: authentification ldap Reply with quote



Bonjour.
je travaille sous Windows XP et BlueJ et
a partir de JNDI j'essaie d'accéder a mon OpenLdap qui se trouve sur
une machine Unix:
Si je l'utilise en anonymous,pas de probleme:
public static String MY_SERVICE="LDAP://nommachine.domaine.fr:389";
puis dans le Main:
env.put(Context.INITIAL_CONTEXT_FACTORY,Env.INITCTX);
.....
Si je passe en sécurisé:
public static String MY_SERVICE="LDAP://nomachine.domaine.fr:636";

Une exception se leve:
javax.naming.ServiceunavailableException : nommachine.domaine.fr:636;
socket closed.....
La connexion est donc refusée.
Pourtant le certificat est rentre sur mon poste XP.
Que se passe t-il ?
D'avance merci.
Back to top
TestMan
Guest





PostPosted: Thu May 10, 2007 2:35 am    Post subject: Re: authentification ldap Reply with quote



Bonsoir,

prioux (AT) ensma (DOT) fr a écrit :
Quote:
Bonjour.
je travaille sous Windows XP et BlueJ et
a partir de JNDI j'essaie d'accéder a mon OpenLdap qui se trouve sur
une machine Unix:
Si je l'utilise en anonymous,pas de probleme:
public static String MY_SERVICE="LDAP://nommachine.domaine.fr:389";
puis dans le Main:
env.put(Context.INITIAL_CONTEXT_FACTORY,Env.INITCTX);
....
Si je passe en sécurisé:
public static String MY_SERVICE="LDAP://nomachine.domaine.fr:636";

Une exception se leve:
javax.naming.ServiceunavailableException : nommachine.domaine.fr:636;
socket closed.....
La connexion est donc refusée.
Pourtant le certificat est rentre sur mon poste XP.

Tu veux dire dans le keystore de Java ou dans le gestionaire de
certificat de XP ?

Quote:
Que se passe t-il ?

Si c'est le deuxième, il te faut le mettre dans le premier ...

Ensuite, essaye avec ldaps dans ton URL comme indiqué dans
http://java.sun.com/products/jndi/tutorial/ldap/security/ssl.html

Quote:
D'avance merci.


A+
TM
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Language Java (Français) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.