Compare commits
9 Commits
pkg/eole/e
...
master
Author | SHA1 | Date | |
---|---|---|---|
3edf7dd774 | |||
293d940fdc | |||
918ceab882 | |||
adea10270d | |||
6c5beb7e9f | |||
583e77d7c7 | |||
eddc9696c3 | |||
cc9a5e20ce | |||
ad9059bfae |
8
Makefile
8
Makefile
@ -2,10 +2,10 @@
|
|||||||
# Makefile pour XXX-XXX
|
# Makefile pour XXX-XXX
|
||||||
################################
|
################################
|
||||||
|
|
||||||
SOURCE=eole-lemonldap-ng
|
SOURCE=eole-lemonldap
|
||||||
VERSION=2.8
|
VERSION=0.1
|
||||||
EOLE_VERSION=2.8
|
EOLE_VERSION=2.7
|
||||||
EOLE_RELEASE=2.8.1
|
EOLE_RELEASE=2.7.2
|
||||||
PKGAPPS=non
|
PKGAPPS=non
|
||||||
#FLASK_MODULE=<APPLICATION>
|
#FLASK_MODULE=<APPLICATION>
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ LemonLDAP::NG EOLE integration
|
|||||||
|
|
||||||
GenConfig -> Mode Expert -> Dépôts tiers -> Libellé du dépôt
|
GenConfig -> Mode Expert -> Dépôts tiers -> Libellé du dépôt
|
||||||
|
|
||||||
#### LemonLDAP::NG repository (if you use EOLE 2.7.2 this is not needed anymore)
|
#### LemonLDAP::NG repository (if you use EOLE 2.8.X this is not needed anymore)
|
||||||
|
|
||||||
* deb https://lemonldap-ng.org/deb stable main
|
* deb https://lemonldap-ng.org/deb stable main
|
||||||
* deb-src https://lemonldap-ng.org/deb stable main
|
* deb-src https://lemonldap-ng.org/deb stable main
|
||||||
|
@ -1,17 +1,25 @@
|
|||||||
%set %%boolean = {'oui': 1, 'non': 0}
|
%set %%boolean = {'oui': 1, 'non': 0}
|
||||||
%set %%ssoFilters = %%getSSOFilters
|
%set %%ssoFilters = %%getSSOFilters
|
||||||
|
%set %%ldapAttributes = {"uid": "uid", "mail": "mail", "cn":"cn"}
|
||||||
%set %%exported_vars = ['"UA": "HTTP_USER_AGENT"']
|
%set %%exported_vars = ['"UA": "HTTP_USER_AGENT"']
|
||||||
%set %%cas_attributes = []
|
%set %%cas_attributes = []
|
||||||
|
%set %%ldap_attributes = {}
|
||||||
%for %%attr in %%casAttribute
|
%for %%attr in %%casAttribute
|
||||||
%silent %%exported_vars.append('"' + %%attr + '": "' + %%attr + '.casLDAPAttribute"')
|
%silent %%exported_vars.append('"' + %%attr + '": "' + %%attr.casLDAPAttribute + '"')
|
||||||
%silent %%cas_attributes.append('"' + %%attr + '": "' + %%attr + '.casLDAPAttribute"')
|
%silent %%cas_attributes.append('"' + %%attr + '": "' + %%attr.casLDAPAttribute + '"')
|
||||||
|
%set %%ldap_attributes[%%attr.casLDAPAttribute] = %%attr.casLDAPAttribute
|
||||||
%end for
|
%end for
|
||||||
%for %%key, %%value in %%ssoFilters
|
%for %%key, %%value in %%ssoFilters
|
||||||
%silent %%exported_vars.append('"' + %%key + '": "' + %%value + '"')
|
%silent %%exported_vars.append('"' + %%key + '": "' + %%value + '"')
|
||||||
%silent %%cas_attributes.append('"' + %%key + '": "' + %%value + '"')
|
%silent %%cas_attributes.append('"' + %%key + '": "' + %%value + '"')
|
||||||
|
%set %%ldap_attributes[%%value] = %%value
|
||||||
%end for
|
%end for
|
||||||
%silent %%exported_vars.sort()
|
%silent %%exported_vars.sort()
|
||||||
%silent %%cas_attributes.sort()
|
%silent %%cas_attributes.sort()
|
||||||
|
%set %%ldapAttr = []
|
||||||
|
%for %%k, %%v in %%ldap_attributes.items()
|
||||||
|
%silent %%ldapAttr.append('"' + %%k + '": "' + %%v + '"')
|
||||||
|
%end for
|
||||||
{
|
{
|
||||||
%if %%lemon_user_db == "AD"
|
%if %%lemon_user_db == "AD"
|
||||||
"ADPwdExpireWarning": %%llADPasswordExpireWarn,
|
"ADPwdExpireWarning": %%llADPasswordExpireWarn,
|
||||||
@ -173,9 +181,7 @@
|
|||||||
"ldapSearchDeref": "find",
|
"ldapSearchDeref": "find",
|
||||||
"ldapBase": "%%ldapUserBaseDN",
|
"ldapBase": "%%ldapUserBaseDN",
|
||||||
"ldapExportedVars": {
|
"ldapExportedVars": {
|
||||||
"cn": "cn",
|
%%custom_join(%%ldapAttr, ',\n ')
|
||||||
"mail": "mail",
|
|
||||||
"uid": "uid"
|
|
||||||
},
|
},
|
||||||
"ldapGroupAttributeName": "memberUid",
|
"ldapGroupAttributeName": "memberUid",
|
||||||
"ldapGroupAttributeNameGroup": "dn",
|
"ldapGroupAttributeNameGroup": "dn",
|
||||||
@ -190,9 +196,9 @@
|
|||||||
"ldapServer": "%%ldapScheme://%%ldapServer",
|
"ldapServer": "%%ldapScheme://%%ldapServer",
|
||||||
%if %%ldapScheme == "ldaps"
|
%if %%ldapScheme == "ldaps"
|
||||||
%if %%lmldapverify == "oui"
|
%if %%lmldapverify == "oui"
|
||||||
"ldapVerify": "required",
|
"ldapVerify": "Require",
|
||||||
%else
|
%else
|
||||||
"ldapVerify": "none",
|
"ldapVerify": "None",
|
||||||
%end if
|
%end if
|
||||||
%end if
|
%end if
|
||||||
"ldapSetPassword": 0,
|
"ldapSetPassword": 0,
|
||||||
@ -279,7 +285,7 @@
|
|||||||
"portalDisplayChangePassword": "$_auth =~ /^(AD|LDAP|DBI|Demo)$/",
|
"portalDisplayChangePassword": "$_auth =~ /^(AD|LDAP|DBI|Demo)$/",
|
||||||
"portalDisplayLoginHistory": 1,
|
"portalDisplayLoginHistory": 1,
|
||||||
"portalDisplayLogout": 1,
|
"portalDisplayLogout": 1,
|
||||||
"portalDisplayRegister": 1,
|
"portalDisplayRegister": %%boolean[%%llRegisterAccount],
|
||||||
"portalDisplayResetPassword": %%boolean[%%llResetPassword],
|
"portalDisplayResetPassword": %%boolean[%%llResetPassword],
|
||||||
"portalForceAuthn": 0,
|
"portalForceAuthn": 0,
|
||||||
"portalForceAuthnInterval": 0,
|
"portalForceAuthnInterval": 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user