You should be able to access the LdapPrincipal associated with any Invocation into the core. Access the invocation stack to lookup the caller which is a ServerLdapContext object. From this you can get a handle on the LdapPrincipal which contains the DN of the user.
Note this mechanism will disappear because of the whole static singleton thing. However for the time being you can use it. I have no clue what version of ApacheDS you're on so it might not matter if you're using 1.0 and are going to stay on it. Alex On 10/8/07, Jan-Olof Herbertsson <[EMAIL PROTECTED]> wrote: > > Hi > > > > Is there some easy way to log what a LDAP userid performs in a custom > application Partition. > Is the userid available in some way in the Partition object or must the > Apache Frontend(Protocol part) code > be changed to send the userid to the backend. > > > > Any suggestions? > > > > Best Regards > *Jan-Olof Herbertsson** > * > Acando AB > Phone: +46 (0)771 501 000 > Direct: +46 (0)31 345 34 50 > Fax: +46 (0)31 345 39 99 > Email: [EMAIL PROTECTED] > Address: Torpavallsgatan 9, SE-416 73 Göteborg > Website: www.acando.com > > >
