[dev] [PATCH] re: Function to get domain part of a username

Tom Evans tevans at tachometry.com
Fri Sep 2 16:50:36 PDT 2005


Hi Etienne,

I had exactly the same question some time back and fixed it with the
following patch. If this passes muster with the dev team, perhaps it can
be added to the Auth class for some future release?

Regards,
Tom

_______________________________
Open Source that means business.
http://www.tachometry.com/
Office: (925) 262-5015
Direct: (925) 260-4834



Etienne Goyer wrote:

>Hi,
>
>I know about auth::getAuth() to retrieve the complete username and
>Auth::getBareAuth() to retrieve only the left-hand part of a user at domain
>username.  Now, is there a function to retrieve the domain portion, the
>right-hand side ?  That would be very useful where Horde is used in
>virtual hosting.  In my case, I would use it to define LDAP search base
>according to domain in various preferences hooks.
>
>If there is not, I would be willing to write it myself and submit it for
>review.  I gladly take your suggestion for a function name, though.
>
>Thanks !
>
>Etienne Goyer
>  
>
>------------------------------------------------------------------------
>
>
>  
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: auth_patch.php
Url: http://lists.horde.org/archives/dev/attachments/20050902/9ab7aaf8/auth_patch.ksh


More information about the dev mailing list