informatica:linux:mediawiki
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
informatica:linux:mediawiki [2013/08/27 11:28] – [Envio de correos] javi | informatica:linux:mediawiki [2013/08/29 10:44] – [Restringir login en funcion del grupo] javi | ||
---|---|---|---|
Line 161: | Line 161: | ||
sudo / | sudo / | ||
| | ||
+ | ==== Restringir login en funcion del grupo ==== | ||
+ | |||
+ | * En este ejemplo ademas tomamos el e-mail de LDAP | ||
+ | * Grupo LDAP requerido: " | ||
+ | * Usuario LDAP de ejemplo: " | ||
+ | |||
+ | 1. Objetos LDAP: | ||
+ | |||
+ | < | ||
+ | # LDAP user | ||
+ | dn: cn=LDAP_USER_1, | ||
+ | cn: LDAP_USER_1 | ||
+ | gidnumber: 10001 | ||
+ | givenname: Name | ||
+ | homedirectory: | ||
+ | loginshell: /bin/bash | ||
+ | mail: LDAP_USER_1@example.com | ||
+ | objectclass: | ||
+ | objectclass: | ||
+ | objectclass: | ||
+ | sn: Surename | ||
+ | uid: LDAP_USER_1 | ||
+ | uidnumber: 10001 | ||
+ | userpassword: | ||
+ | |||
+ | # LDAP group | ||
+ | dn: cn=ldapwiki, | ||
+ | cn: ldapwiki | ||
+ | gidnumber: 10004 | ||
+ | memberuid: LDAP_USER_1 | ||
+ | memberuid: LDAP_USER_2 | ||
+ | objectclass: | ||
+ | objectclass: | ||
+ | </ | ||
+ | |||
+ | 2. Configuracion mediawiki (archivo " | ||
+ | |||
+ | < | ||
+ | # LDAP | ||
+ | require_once ' | ||
+ | require_once ' | ||
+ | $wgAuth = new LdapAuthenticationPlugin(); | ||
+ | $wgLDAPDomainNames = array( | ||
+ | ' | ||
+ | ); | ||
+ | $wgLDAPServerNames = array( | ||
+ | ' | ||
+ | ); | ||
+ | $wgLDAPUseLocal = false; | ||
+ | $wgLDAPEncryptionType = array( | ||
+ | ' | ||
+ | ); | ||
+ | $wgLDAPPort = array( | ||
+ | ' | ||
+ | ); | ||
+ | $wgLDAPProxyAgent = array( | ||
+ | ' | ||
+ | ); | ||
+ | $wgLDAPProxyAgentPassword = array( | ||
+ | ' | ||
+ | ); | ||
+ | $wgLDAPSearchAttributes = array( | ||
+ | ' | ||
+ | ); | ||
+ | $wgLDAPBaseDNs = array( | ||
+ | ' | ||
+ | ); | ||
+ | # To pull e-mail address from LDAP | ||
+ | $wgLDAPPreferences = array( | ||
+ | ' | ||
+ | ); | ||
+ | # Group based restriction | ||
+ | $wgLDAPGroupUseFullDN = array( " | ||
+ | $wgLDAPGroupObjectclass = array( " | ||
+ | $wgLDAPGroupAttribute = array( " | ||
+ | $wgLDAPGroupSearchNestedGroups = array( " | ||
+ | $wgLDAPGroupNameAttribute = array( " | ||
+ | $wgLDAPRequiredGroups = array( " | ||
+ | $wgLDAPLowerCaseUsername = array( | ||
+ | ' | ||
+ | ); | ||
+ | </ | ||
===== Reducir el numero de encabezados que genera un TOC (Table Of Contents) ===== | ===== Reducir el numero de encabezados que genera un TOC (Table Of Contents) ===== | ||
informatica/linux/mediawiki.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1