You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Jan-Olof Herbertsson <ja...@acando.com> on 2007/10/08 14:42:12 UTC
How to log userid in ApacheDS backend
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: Jan-Olof.Herbertsson@acando.com <ma...@acando.com>
Address: Torpavallsgatan 9, SE-416 73 Göteborg
Website: www.acando.com
Re: How to log userid in ApacheDS backend
Posted by Alex Karasulu <ak...@apache.org>.
It will be removed in 1.5.x where x>1. But another mechanism will appear
that is much saner than
what we have presently. Just consider all protocol requests reaching the
backend through the
interceptor stack granting access to the principal.
Alex
On 10/9/07, Jan-Olof Herbertsson <ja...@acando.com> wrote:
>
> Thanks for your answer
>
> I am running ApacheDS 1.0 and have to check if we should stay on it.
>
> From which version will this possibility disappear? Are there other
> possibilities?
>
>
>
> Best Regards
> / JOH
> ------------------------------
>
> *From:* akarasulu@gmail.com [mailto:akarasulu@gmail.com] *On Behalf Of *Alex
> Karasulu
> *Sent:* Monday, October 08, 2007 5:24 PM
> *To:* Apache Directory Developers List
> *Subject:* Re: How to log userid in ApacheDS backend
>
>
>
> 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* <jan-olof.herbertsson@acando.com >
> 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: [image: Web Bug from
> chrome://skype_ff_toolbar_win/content/space.gif][image: Web Bug from
> chrome://skype_ff_toolbar_win/content/space.gif][image: Web Bug from
> chrome://skype_ff_toolbar_win/content/space.gif][image: Web Bug from
> chrome://skype_ff_toolbar_win/content/space.gif]+46 (0)31 345 34 50
> Fax: +46 (0)31 345 39 99
> Email: Jan-Olof.Herbertsson@acando.com
> Address: Torpavallsgatan 9, SE-416 73 Göteborg
> Website: www.acando.com
>
>
>
>
>
RE: How to log userid in ApacheDS backend
Posted by Jan-Olof Herbertsson <ja...@acando.com>.
Thanks for your answer
I am running ApacheDS 1.0 and have to check if we should stay on it.
From which version will this possibility disappear? Are there other possibilities?
Best Regards
/ JOH
________________________________
From: akarasulu@gmail.com [mailto:akarasulu@gmail.com] On Behalf Of Alex Karasulu
Sent: Monday, October 08, 2007 5:24 PM
To: Apache Directory Developers List
Subject: Re: How to log userid in ApacheDS backend
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 <jan-olof.herbertsson@acando.com > 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: <chrome://skype_ff_toolbar_win/content/cb_transparent_l.gif> <chrome://skype_ff_toolbar_win/content/famfamfam/se.gif> Web Bug from chrome://skype_ff_toolbar_win/content/space.gif<http://www.mailscanner.info/images/1x1spacer.gif> Web Bug from chrome://skype_ff_toolbar_win/content/space.gif<http://www.mailscanner.info/images/1x1spacer.gif> Web Bug from chrome://skype_ff_toolbar_win/content/space.gif<http://www.mailscanner.info/images/1x1spacer.gif> Web Bug from chrome://skype_ff_toolbar_win/content/space.gif<http://www.mailscanner.info/images/1x1spacer.gif> +46 (0)31 345 34 50 <chrome://skype_ff_toolbar_win/content/cb_transparent_r.gif>
Fax: +46 (0)31 345 39 99
Email: Jan-Olof.Herbertsson@acando.com <ma...@acando.com>
Address: Torpavallsgatan 9, SE-416 73 Göteborg
Website: www.acando.com
Re: How to log userid in ApacheDS backend
Posted by Alex Karasulu <ak...@apache.org>.
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 <ja...@acando.com> 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: Jan-Olof.Herbertsson@acando.com
> Address: Torpavallsgatan 9, SE-416 73 Göteborg
> Website: www.acando.com
>
>
>