Re: splitting login with passwd?
Jan Schneider <[email protected]>
| Newsgroups | gmane.comp.horde.sork |
|---|---|
| Message-ID | <[email protected]> |
Zitat von Jan Johansson <[email protected]>: > Okay.. NEW question. Is it possible to use passwd to split a username? User > is logged in as [email protected], that would set %u to "[email protected]". > Problem is that i would need two vars. One to hold j2-mobil, and one to hold > mupp.net in order to get my passwd backend working. Possible? > > My SQL (update) is below, and you can see where I need to use the vars. > > update pm_users inner join pm_domains on pm_domains.ID = pm_users.SiteID set > pm_users.Password = md5('q1w2e3') where pm_users.name = 'j2-mobil' and > pm_domains.Name = 'mupp.net'; You could use the _passwd_hook_username to get the user name part. And if you don't allow the users to enter the username, i.e. force them to use their current name, you could use the query_* paramters of the SQL driver to contain the domain part with Auth::getAuthDomain(). Jan. -- Do you need professional PHP or Horde consulting? http://horde.org/consulting/ -- Sork mailing list - Join the hunt: http://horde.org/bounties/#sork Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]