Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
ce809fc8
Commit
ce809fc8
authored
Jan 19, 2019
by
Christophe Maudoux
🐛
Browse files
Improve manager tree (#1616)
parent
774137e5
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/DefaultValues.pm
View file @
ce809fc8
...
...
@@ -121,9 +121,9 @@ sub defaultValues {
'
macros
'
=>
{},
'
mailCharset
'
=>
'
utf-8
',
'
mailFrom
'
=>
'
noreply@example.com
',
'
mailPwdRstTimeout
'
=>
0
,
'
mailPwdRstUrl
'
=>
'
http://auth.example.com/resetpwd
',
'
mailSessionKey
'
=>
'
mail
',
'
mailTimeout
'
=>
0
,
'
managerDn
'
=>
'',
'
managerPassword
'
=>
'',
'
max2FDevices
'
=>
10
,
...
...
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Attributes.pm
View file @
ce809fc8
...
...
@@ -1585,6 +1585,10 @@ qr/^(?:\*\.)?(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][
'
mailPwdRstSubject
'
=>
{
'
type
'
=>
'
text
'
},
'
mailPwdRstTimeout
'
=>
{
'
default
'
=>
0
,
'
type
'
=>
'
int
'
},
'
mailPwdRstUrl
'
=>
{
'
default
'
=>
'
http://auth.example.com/resetpwd
',
'
type
'
=>
'
url
'
...
...
@@ -1596,10 +1600,6 @@ qr/^(?:\*\.)?(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][
'
default
'
=>
'
mail
',
'
type
'
=>
'
text
'
},
'
mailTimeout
'
=>
{
'
default
'
=>
0
,
'
type
'
=>
'
int
'
},
'
maintenance
'
=>
{
'
default
'
=>
0
,
'
type
'
=>
'
bool
'
...
...
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Build/Attributes.pm
View file @
ce809fc8
...
...
@@ -1137,19 +1137,19 @@ sub attributes {
},
mailReplyTo
=>
{
type
=>
'
text
',
documentation
=>
'
Reply-To address
'
},
mailTimeout
=>
{
mail
PwdRst
Timeout
=>
{
type
=>
'
int
',
default
=>
0
,
documentation
=>
'
Mail session timeout
',
documentation
=>
'
Mail
password reset
session timeout
',
},
# Password reset
mailPwdRstBody
=>
{
type
=>
'
longtext
',
documentation
=>
'
Custom mail body
',
},
{
type
=>
'
longtext
',
documentation
=>
'
Custom
password reset
mail body
',
},
mailPwdRstConfirmBody
=>
{
type
=>
'
longtext
',
documentation
=>
'
Custom confirm mail body
',
documentation
=>
'
Custom confirm
password reset
mail body
',
},
mailPwdRstConfirmSubject
=>
{
type
=>
'
text
',
...
...
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Build/Tree.pm
View file @
ce809fc8
...
...
@@ -515,13 +515,13 @@ sub tree {
'
exportedAttr
',
{
title
=>
'
SMTP
',
nodes
=>
[
'
mailSessionKey
',
'
SMTPServer
',
'
SMTPPort
',
'
SMTPAuthUser
',
'
SMTPAuthPass
',
'
SMTPTLS
',
'
SMTPTLSOpts
',
'
mailSessionKey
',
'
SMTPTLSOpts
',
{
title
=>
'
mailHeaders
',
form
=>
'
simpleInputContainer
',
nodes
=>
[
...
...
@@ -571,7 +571,7 @@ sub tree {
form
=>
'
simpleInputContainer
',
nodes
=>
[
'
mailPwdRstUrl
',
'
mailTimeout
',
'
mail
PwdRst
Timeout
',
'
randomPasswordRegexp
',
]
}
...
...
lemonldap-ng-manager/site/htdocs/static/languages/ar.json
View file @
ce809fc8
...
...
@@ -392,7 +392,7 @@
"mailReplyTo"
:
"عنوان الجواب"
,
"mailSessionKey"
:
"مفتاح الجلسة الذي يحتوي على عنوان البريد الإلكتروني"
,
"mailPwdRstSubject"
:
"نجاح عنوان البريد"
,
"mailTimeout"
:
"عدم تطابق كلمت المرور"
,
"mail
PwdRst
Timeout"
:
"عدم تطابق كلمت المرور"
,
"mailPwdRstUrl"
:
"Page URL"
,
"maintenance"
:
"وضع الصيانة"
,
"malformedValue"
:
"قيمة سيئة التصميم"
,
...
...
lemonldap-ng-manager/site/htdocs/static/languages/de.json
View file @
ce809fc8
...
...
@@ -392,7 +392,7 @@
"mailReplyTo"
:
"Reply address"
,
"mailSessionKey"
:
"Session key containing mail address"
,
"mailPwdRstSubject"
:
"Success mail subject"
,
"mailTimeout"
:
"Validity time of a password reset request"
,
"mail
PwdRst
Timeout"
:
"Validity time of a password reset request"
,
"mailPwdRstUrl"
:
"Page URL"
,
"maintenance"
:
"Maintenance mode"
,
"malformedValue"
:
"Malformed value"
,
...
...
lemonldap-ng-manager/site/htdocs/static/languages/en.json
View file @
ce809fc8
...
...
@@ -392,8 +392,8 @@
"mailReplyTo"
:
"Reply address"
,
"mailSessionKey"
:
"Session key containing mail address"
,
"mailPwdRstSubject"
:
"Success mail subject"
,
"mailTimeout"
:
"Validity time of a password reset request"
,
"mailPwdRstUrl"
:
"
P
age URL"
,
"mail
PwdRst
Timeout"
:
"Validity time of a password reset request"
,
"mailPwdRstUrl"
:
"
Reset p
age URL"
,
"maintenance"
:
"Maintenance mode"
,
"malformedValue"
:
"Malformed value"
,
"managerDn"
:
"Account"
,
...
...
@@ -635,7 +635,7 @@
"registerDB"
:
"Register module"
,
"registerDoneSubject"
:
"Subject for done mail"
,
"registerTimeout"
:
"Validity time of a register request"
,
"registerUrl"
:
"
P
age URL"
,
"registerUrl"
:
"
Register p
age URL"
,
"reloadParams"
:
"Configuration reload"
,
"reloadTimeout"
:
"Reload timeout"
,
"reloadUrls"
:
"Reload URLs"
,
...
...
lemonldap-ng-manager/site/htdocs/static/languages/fr.json
View file @
ce809fc8
...
...
@@ -383,7 +383,7 @@
"mailCharset"
:
"Charset"
,
"mailPwdRstConfirmBody"
:
"Contenu du message de confirmation"
,
"mailPwdRstConfirmSubject"
:
"Sujet du message de confirmation"
,
"mailPwdRstContent"
:
"Contenu du mail de réinitialisation
du mot de passe
"
,
"mailPwdRstContent"
:
"Contenu du mail de réinitialisation"
,
"mailFrom"
:
"Expéditeur du message"
,
"mailHeaders"
:
"En-têtes du mail"
,
"mailLDAPFilter"
:
"Filtre mail"
,
...
...
@@ -392,8 +392,8 @@
"mailReplyTo"
:
"Adresse de réponse"
,
"mailSessionKey"
:
"Clef de session contenant l'adresse email"
,
"mailPwdRstSubject"
:
"Sujet du message de succès"
,
"mailTimeout"
:
"Durée de validité d'une
demand
e de réinitialisation"
,
"mailPwdRstUrl"
:
"URL de la page"
,
"mail
PwdRst
Timeout"
:
"Durée de validité d'une
requêt
e de réinitialisation"
,
"mailPwdRstUrl"
:
"URL de la page
de réinitialisation
"
,
"maintenance"
:
"Mode maintenance"
,
"malformedValue"
:
"Valeur mal formée"
,
"managerDn"
:
"Compte de connexion LDAP"
,
...
...
@@ -634,8 +634,8 @@
"registerConfirmSubject"
:
"Sujet du mail de confirmation"
,
"registerDB"
:
"Module d'auto-enregistrement"
,
"registerDoneSubject"
:
"Sujet du mail de prise en compte"
,
"registerTimeout"
:
"Durée de validité d
e la
requête"
,
"registerUrl"
:
"URL de la page"
,
"registerTimeout"
:
"Durée de validité d
'une
requête
de création
"
,
"registerUrl"
:
"URL de la page
de création
"
,
"reloadParams"
:
"Mise à jour de la configuration"
,
"reloadTimeout"
:
"Délai de mise à jour"
,
"reloadUrls"
:
"URLs de mise à jour"
,
...
...
lemonldap-ng-manager/site/htdocs/static/languages/it.json
View file @
ce809fc8
...
...
@@ -392,7 +392,7 @@
"mailReplyTo"
:
"Indirizzo di risposta"
,
"mailSessionKey"
:
"Chiave di sessione contenente l'indirizzo di posta"
,
"mailPwdRstSubject"
:
"Successo del soggetto della mail"
,
"mailTimeout"
:
"Tempo di validità di una richiesta di ripristino della password"
,
"mail
PwdRst
Timeout"
:
"Tempo di validità di una richiesta di ripristino della password"
,
"mailPwdRstUrl"
:
"URL della pagina"
,
"maintenance"
:
"Modalità di manutenzione"
,
"malformedValue"
:
"Valore malformato"
,
...
...
@@ -632,10 +632,10 @@
"regexps"
:
"Espressioni regolari"
,
"register"
:
"Registra nuovo account"
,
"registerConfirmSubject"
:
"Oggetto per la mail di conferma"
,
"registerDB"
:
"Modulo di autoregistrazione"
,
"registerDB"
:
"Modulo di autoregi
di registrazione
strazione"
,
"registerDoneSubject"
:
"Oggetto per la mail inviata"
,
"registerTimeout"
:
"Tempo di validità di una richiesta di registrazione"
,
"registerUrl"
:
"URL della pagina"
,
"registerUrl"
:
"URL della pagina
di registrazione
"
,
"reloadParams"
:
"Ricarica di configurazione"
,
"reloadTimeout"
:
"Ricarica il timeout"
,
"reloadUrls"
:
"Ricarica gli URL"
,
...
...
lemonldap-ng-manager/site/htdocs/static/languages/vi.json
View file @
ce809fc8
...
...
@@ -392,8 +392,8 @@
"mailReplyTo"
:
"Địa chỉ trả lời"
,
"mailSessionKey"
:
"Khóa phiên chứa địa chỉ thư"
,
"mailPwdRstSubject"
:
"Chủ đề thư thành công"
,
"mailTimeout"
:
"Thời hạn hợp lệ của yêu cầu đặt lại mật khẩu"
,
"mailPwdRstUrl"
:
"
P
age URL"
,
"mail
PwdRst
Timeout"
:
"Thời hạn hợp lệ của yêu cầu đặt lại mật khẩu"
,
"mailPwdRstUrl"
:
"
Reset p
age URL"
,
"maintenance"
:
"Chế độ bảo trì"
,
"malformedValue"
:
"Giá trị không hợp lệ"
,
"managerDn"
:
"Tài khoản"
,
...
...
@@ -635,7 +635,7 @@
"registerDB"
:
"Register module"
,
"registerDoneSubject"
:
"Tiêu đề cho thư đã hoàn tất"
,
"registerTimeout"
:
"Thời hạn hiệu lực của yêu cầu đăng ký"
,
"registerUrl"
:
"
P
age URL"
,
"registerUrl"
:
"
Register p
age URL"
,
"reloadParams"
:
"Configuration reload"
,
"reloadTimeout"
:
"Reload timeout"
,
"reloadUrls"
:
"Reload URLs"
,
...
...
lemonldap-ng-manager/site/htdocs/static/languages/zh.json
View file @
ce809fc8
...
...
@@ -392,8 +392,8 @@
"mailReplyTo"
:
"Reply address"
,
"mailSessionKey"
:
"Session key containing mail address"
,
"mailPwdRstSubject"
:
"Success mail subject"
,
"mailTimeout"
:
"Validity time of a password reset request"
,
"mailPwdRstUrl"
:
"
P
age URL"
,
"mail
PwdRst
Timeout"
:
"Validity time of a password reset request"
,
"mailPwdRstUrl"
:
"
Reset p
age URL"
,
"maintenance"
:
"Maintenance mode"
,
"malformedValue"
:
"Malformed value"
,
"managerDn"
:
"账户"
,
...
...
@@ -635,7 +635,7 @@
"registerDB"
:
"Register module"
,
"registerDoneSubject"
:
"Subject for done mail"
,
"registerTimeout"
:
"Validity time of a register request"
,
"registerUrl"
:
"
P
age URL"
,
"registerUrl"
:
"
Register p
age URL"
,
"reloadParams"
:
"Configuration reload"
,
"reloadTimeout"
:
"Reload timeout"
,
"reloadUrls"
:
"Reload URLs"
,
...
...
lemonldap-ng-manager/site/htdocs/static/reverseTree.json
View file @
ce809fc8
This diff is collapsed.
Click to expand it.
lemonldap-ng-manager/site/htdocs/static/struct.json
View file @
ce809fc8
This diff is collapsed.
Click to expand it.
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/MailPasswordReset.pm
View file @
ce809fc8
...
...
@@ -203,9 +203,9 @@ sub _reset {
return
PE_MAILNOTFOUND
;
}
my
$mailTimeout
=
$self
->
conf
->
{
mailTimeout
}
||
$self
->
conf
->
{
timeout
};
my
$expTimestamp
=
time
()
+
$mailTimeout
;
my
$mail
PwdRst
Timeout
=
$self
->
conf
->
{
mail
PwdRst
Timeout
}
||
$self
->
conf
->
{
timeout
};
my
$expTimestamp
=
time
()
+
$mail
PwdRst
Timeout
;
$req
->
data
->
{
expMailDate
}
=
strftime
(
"
%d/%m/%Y
",
localtime
$expTimestamp
);
$req
->
data
->
{
expMailTime
}
...
...
@@ -227,12 +227,12 @@ sub _reset {
# Use default session timeout and mail session timeout to compute it
my
$time
=
time
();
my
$timeout
=
$self
->
conf
->
{
timeout
};
my
$mailTimeout
=
$self
->
conf
->
{
mailTimeout
}
||
$timeout
;
my
$mail
PwdRst
Timeout
=
$self
->
conf
->
{
mail
PwdRst
Timeout
}
||
$timeout
;
$infos
->
{
_utime
}
=
$time
+
(
$mailTimeout
-
$timeout
);
$infos
->
{
_utime
}
=
$time
+
(
$mail
PwdRst
Timeout
-
$timeout
);
# Store expiration timestamp for further use
$infos
->
{
mailSessionTimeoutTimestamp
}
=
$time
+
$mailTimeout
;
$infos
->
{
mailSessionTimeoutTimestamp
}
=
$time
+
$mail
PwdRst
Timeout
;
# Store start timestamp for further use
$infos
->
{
mailSessionStartTimestamp
}
=
$time
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment