Re: [horde] Horde installation for users in multiple domains
[email protected] Mon, 25 Oct 2004 09:15:03 -0500
| Newsgroups | gmane.comp.horde.sam |
|---|---|
| Message-ID | <[email protected]> |
This message is in MIME format. --=_4y0sn2fw0ccg Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit If I login as [email protected] and set $conf['hooks']['username'] = false; then it SAM uses just user. If I login as [email protected] and set $conf['hooks']['username'] = true; and put this hook in horde/config/hooks.php: if (!function_exists('_passwd_hook_username')) { function _passwd_hook_username($userid) { return $userid . '@example.com'; } } Then it will actually use [email protected] which is not bad if I am only hosting one domain and I can hard code it. Can anybody please tell me what the hook should be for Sam to use the full user@domain username instead of the domain part being stripped. Thanks in advance. Diego Quoting John Dalbec <[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. >> > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. --=_4y0sn2fw0ccg Content-Type: application/pgp-keys Content-Description: PGP Public Key Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.2.4 (GNU/Linux) mQGiBEF5e2MRBACWEjsWkWQoRinTPUjufrMNe6ZdbfLIpKszPgqeesUU5SnMjl2G b3aX9kEFJJ7v0sLf2VBBtk0H9VHmf1OsscNCoX1aeeqlLWURO+94dOEUAIh8fov3 dJq0nmQiP1NpU+9PIJ8kPi3ryHi6ZDkRM/I0pjmVaFg4+QPgvRQH9l6OSwCgnYXj Q1iU1yvgZt64Y9rXwsjSqkcD/32VwERnLY3wr7bHHrwfp34twNo4DWxdmdm9Xknt dFo1N1PuJp4oVmb2gtp/8v+xuDx8BHiYs5Bz6sahzYNfkusvh12ONSLLx8VTOQlv wnFikwNpF9vUBNuIfrJ24UeJa8ufPYHbA0euDOHucRFKKupMVlhlcXL9Pr4gbHyp jJMcA/99dDg6YYsBFPPerJbzO1SFFC515dPuRUAPKh+5F3QznPPP+r22T/fEN3OU 3FdeXetA69g2NdvGHvjpFQkuE40HSXaeg7+bN4FXmdheyNyfv2k5r/F+FHOQDGmo t99Xb84jEfMbp7SZmsaJ9TB+yUffAQVulGu8UU2uvGbafo1nGbQnRGllZ28gTGxv c2EgKERpZWd1aW4pIDxkaWVnb0BsbG9zYS5uZXQ+iFsEExECABsFAkF5e2MGCwkI BwMCAxUCAwMWAgECHgECF4AACgkQJLkpxpxHGvmhJgCeNYRAXh5sTj4uPYimL+UK Dv1DZMoAnjgkKQ0EZSlo0G++CQFpLIqKahEjuQENBEF5e2UQBACANHSMIEUeaTDm a28+vOyVEHNFpoL4rsTSNhCtvzpQGadFbMrtaw/C1WIDkliO2wnMcRNqFWE6jk/H +4h5KUEPvCuNEgniZx3RJ0WACd3xUMFHZFDTf0yZXSTlo6UJFbxxI0EVR3U8rdWk oSyYOjX64hPNOIla0O197haPbfVHwwADBQP+LMHF0rXyyIbxIJ1hUUa8AQ6OC8pn rMLusaFHhGPS5AD/IKkSM3AWG6riBDpWfIIDERTRSwyXdpwC3CeuBZVOH9aEBS3M SdL2Xj/BAM0Kys8wk0Ybn1t05Ta8OgjkEEbGfXJbMK4WRRI4yxJo9yUlTtz8Ga+j fWWeRAnea0PND2uIRgQYEQIABgUCQXl7ZQAKCRAkuSnGnEca+Y0PAJ41J40wnTxw gTF/OGcx/oHlKSsVXQCfRRlevA3JbwyK9bpgVLIMET/BVHs= =4ZzM -----END PGP PUBLIC KEY BLOCK----- --=_4y0sn2fw0ccg Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- sam mailing list - Join the hunt: http://horde.org/bounties/#sam Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected] --=_4y0sn2fw0ccg--