Re: [horde] Horde installation for users in multiple domains
John Dalbec <[email protected]> Mon, 25 Oct 2004 08:57:52 -0400
| Newsgroups | gmane.comp.horde.sam |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > Has anybody been able to get the Sam hook to work so that the user is > user@domain instead of just user? > > All other modules work with now problem except for Sam. Any help would be > appreciated. > > Thanks in advance. > > Quoting Thomas O'Brien <[email protected]>: > >> Quoting [email protected]: >> >>> Thomas, >>> Thanks I got it to work for passwd. I am still having difficulties >>> with the one >>> for sam. >>> >>> I have in horde/sam/config/conf.php : >>> $conf['hooks']['username'] = true; >>> >>> and then in horde/config/hooks.php : >>> >>> if (!function_exists('_sam_hook_username')) { >>> function _sam_hook_username($horde_uid) >>> { >>> if (strstr($horde_uid, '@')) { >>> $parts = explode('@', $horde_uid); >>> return $parts[0]; >>> } else { >>> return $horde_uid; >>> } >>> } >>> } This hook code strips off the @domain part from the username if it is present. Maybe if you set $conf['hooks']['username'] = false; SAM will do what you want. HTH, John >>> >>> >>> But still does not work. It fails to add the @domain part to the >>> username. Any >>> ideas why is not working? >>> >> >> Honestly, no. But this thread is in the right place and I'm sure >> someone here >> does know. In the mean time maybe search the archives. >> >> Thomas >> >> > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > -- sam mailing list - Join the hunt: http://horde.org/bounties/#sam Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]