[ 
https://issues.apache.org/jira/browse/HADOOP-8121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13222638#comment-13222638
 ] 

Jonathan Natkins commented on HADOOP-8121:
------------------------------------------

1. Yeah, I agree with that
2. Done
3. I added some synchronize blocks, just to be safe

4. Turns out it wasn't long lived, because I had a little bug in my code, but 
it's cached properly now. Here's a link to some relevant code: 
http://javasourcecode.org/html/open-source/jdk/jdk-6u23/com/sun/jndi/ldap/LdapCtx.java.html

Digging in a little bit, you'll see that the ctx.search call leads to a call of 
LdapCtx.doSearch(). Conveniently, the first line of that method calls 
LdapCtx.ensureOpen(), which reconnects to the LDAP server, if necessary.

                
> Active Directory Group Mapping Service
> --------------------------------------
>
>                 Key: HADOOP-8121
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8121
>             Project: Hadoop Common
>          Issue Type: New Feature
>          Components: security
>            Reporter: Jonathan Natkins
>            Assignee: Jonathan Natkins
>         Attachments: HADOOP-8121.2.patch, HADOOP-8121.3.patch, 
> HADOOP-8121.4.patch, HADOOP-8121.5.patch, HADOOP-8121.6.patch, 
> HADOOP-8121.patch
>
>
> Planning on building a group mapping service that will go and talk directly 
> to an Active Directory setup to get group memberships

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to