https://rt-wiki.bestpractical.com/index.php?title=AutoCreateFromExternalUserInfo&feed=atom&action=historyAutoCreateFromExternalUserInfo - Revision history2024-03-29T07:01:31ZRevision history for this page on the wikiMediaWiki 1.37.2https://rt-wiki.bestpractical.com/index.php?title=AutoCreateFromExternalUserInfo&diff=249&oldid=prevAdmin: 4 revisions imported2016-04-06T20:03:17Z<p>4 revisions imported</p>
<p><b>New page</b></p><div>{{Template:Outdated}}<br />
== Automatic account generation from LDAP ==<br />
<br />
NOTE: Please see [[LdapSummary]] for an overview of the latest available implementations<br />
<br />
You should not use this LDAP extension with modern versions of RT.<br />
Please use RT-Authen-ExternalAuth. It is compatible with 3.6 3.8 and 4.0 (see the README for up tp date notes about version compatibility).<br />
<br />
Do not use the extension described below unless you're running 3.4 or some other legacy version of RT.<br />
The IsPassword function defined is not compatible with modern versions of RT and will not allow local users to log in.<br />
<br />
Download Overlay of CurrentUser [http://www.zanfur.com/rt3-contrib/AutoCreateFromExternalUserInfo/CurrentUser_Local.pm here] (zanfur.com).<br />
<br />
This Overlay is useful if you want the following behavior:<br />
<br />
* Whenever RT tries -- and fails -- to load a user from the RT user database, it queries an Ldap server for the account information and creates it on the fly (for both email lookups and web logins)<br />
* RT behaves as though the account has always been there -- i.e. there is no reason to give "Everyone" the "Create Ticket" right, because the account has been there all along ...<br />
* NO synchronization with the Ldap server once the account has been created, so any changes in RT stay in RT and any changes in Ldap stay in Ldap (unless you run some other script, of course)<br />
<br />
To use, copy the contents of this [http://www.zanfur.com/rt3-contrib/AutoCreateFromExternalUserInfo/CurrentUser_Local.pm CurrentUser_Local.pm] into yours (create it if it doesn't exist), read the configuration directives in the comments at the top of the LookupExternalUserInfo function, and configure your [[RTSiteConfig]].pm accordingly.<br />
<br />
This overlay only creates the accounts, and does not authenticate. If you would like to authenticate using LDAP as well, use the [[LdapOverlay]] on the Contributions page, or use [[WebExternalAuth]] and mod_auth_ldap.<br />
<br />
Also see [[AutoCreateAndCanonicalizeUserInfo]] [[LdapSummary]]</div>Admin