[jira] Commented: (DIRSERVER-1115) server-jndi:
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > [jira] Commented: (DIRSERVER-1115) server-jndi:




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Commented: (DIRSERVER-1115) server-jndi:  
Emmanuel Lecharny (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-03-08 12:11 PM


[ https://issues.apache.org/jira/brow...2
555546 ]

Emmanuel Lecharny commented on DIRSERVER-1115:
----------------------------------------------

I will commit something slightly different :

Index: apacheds/server-jndi/src/main/java/org/apache/directory/server/config
uration/ApacheDS.java
 ========================================
===========================
--- apacheds/server-jndi/src/main/java/org/apache/directory/server/configura
tion/ApacheDS.java	(revision 608424)
+++ apacheds/server-jndi/src/main/java/org/apache/directory/server/configura
tion/ApacheDS.java	(working copy)
@@ -207,7 +207,7 @@
}





-    protected void setLdifFilters( List<LdifLoadFilter> filters )

+    public void setLdifFilters( List<LdifLoadFilter> filters )

{

this.ldifFilters.clear();

this.ldifFilters.addAll( filters );

@@ -318,8 +318,9 @@
}





-        LdapPrincipal admin = new LdapPrincipal( new LdapDN( ServerDNConsta
nts.ADMIN_SYSTEM_DN ),

+        LdapPrincipal admin = new LdapPrincipal( new LdapDN( ServerDNConsta
nts.ADMIN_SYSTEM_DN_NORMALIZED ),

AuthenticationLevel.STRONG );

+

DirContext root = directoryService.getJndiContext( admin );

ensureLdifFileBase( root );




We already have a constants which represent the normalized form of a ADMIN_S
YSTEM DN, I suggest we use this one.

Can you check that and tell me if it's ok?

Otherwise, moving from protected to public seems to be a good idea.


> server-jndi: org.apache.directory.server.configuration.ApacheDS throws jav
a.lang.IllegalStateException: Names used for principals must be normalized!
> --------------------------------------------------------------------------
---------------------------------------------------------------------------
>
>                 Key: DIRSERVER-1115
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1115
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.2
>         Environment: Win 2003 Server, Sun JDK 1.5.1_11
>            Reporter: Simon Temple
>             Fix For: 1.5.2
>
>         Attachments: ds.patch
>
>
> Alex suggested:
> " I recommend you proceed like so for now:
> (1) get a handle on the DirectoryService
> (2) access the attributeType registry via directoryService.getRegistries()
.getAttributeTypeRegistry()
> (3) from the attribute type registry access the normalizer map getNormaliz
erMap() or something like that
> (4) feed this into the dn.normalize() method of the dn you feed into LdapP
rincipal"
> This fixes the runtime problem.
> ** In addition, I'd like to request the method setLdifFilters() is made pu
blic so an embedded application can continue to provide them (as was the cas
e with 1.0 and 1.5.1) **
> I'm not a committer but will attach a patch file.  Would you please consider and a
pply the patch?

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:38 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register