directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon.Tem...@saaconsultants.com
Subject Re: 1.5.2 ApacheDS() loadLdifs Problem
Date Fri, 21 Dec 2007 11:26:15 GMT
Update:

Changing the code to this seems to work:

 LdapDN dn = new LdapDN();
 dn.add( ServerDNConstants.ADMIN_SYSTEM_DN );
 LdapPrincipal admin = new LdapPrincipal( dn, AuthenticationLevel.STRONG );

this is because the empty constructor sets isNormailized to true!

This smells like a work-around not a fix... anyone care to comment?

Thanks

- SimonT

21 December 2007 10:52
To: dev@directory.apache.org
cc: 
From: Simon.Temple@saaconsultants.com
Subject: 1.5.2 ApacheDS() loadLdifs Problem


Hi

I can't start a 1.5.2 server via the ApacheDS class:

LdapPrincipal admin = new LdapPrincipal( new LdapDN( ServerDNConstants.ADMIN_SYSTEM_DN ),
AuthenticationLevel.STRONG );

java.lang.IllegalStateException: Names used for principals must be normalized!
 at org.apache.directory.server.core.authn.LdapPrincipal.<init>(LdapPrincipal.java:72)
 at org.apache.directory.server.configuration.ApacheDS.loadLdifs(ApacheDS.java:321)
 at org.apache.directory.server.configuration.ApacheDS.startup(ApacheDS.java:95)

Will it work if the code is changed to use ServerDNConstants.ADMIN_SYSTEM_DN_NORMALIZED?


- SimonT
Mime
View raw message