$wgHiddenPrefs = 'disablemail' // But change it depending on type of remote user (uses the // closure feature described below). $wgDefaultUserOptions = 0 // And disable it from being changed by the user. Instead use MediaWiki global for the preference option. In most cases these globals are better suited for a definition of a default value and disabling their modifiability: But take note of MediaWikis $wgDefaultUserOptions and $wgHiddenPrefs for declaring user preference options. Any further key value pair specified gets mapped to a user preference of the same name. They are expecting an array of key value pairs of which realname and email corresponds to the new users real name and email address. This can be useful if you don't want the user to change this preference inside MediaWiki (for example your company email address given by a remote source). Either UserPrefs or UserPrefsForced, which applies them to new users only or force them by applying them on each request. When you have further user information available in your environment, which can be tied to a created user, for example email address or real name, then use one of the following configuration variables. $wgAuthRemoteuserUserNameWhitelistFilter = Add the following code at the bottom of your LocalSettings.php :.Download and place the file(s) in a directory called Auth_remoteuser in your extensions/ folder.This allows integration with the web server's built-in authentication system (for example via the REMOTE_USER environment variable, which is set through HTTP-Auth, LDAP, CAS, PAM, etc.) or any other type of external authentication (SSL client auth, user accounts provided by different forum software, etc.). The external source takes total responsibility in authenticating that user. The extension maps the given remote user name to an existing user name in the local wiki database (or creates it first if it has the permissions to do so). The Auth remoteuser extension automatically logs-in users if they are already authenticated by an arbitrary remote source.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |