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
fusiondirectory
fusiondirectory
Commits
aa0f3dc5
Commit
aa0f3dc5
authored
Dec 07, 2016
by
Côme Chilliet
Browse files
Fixes
#5280
Renamed tokenRDN in recoveryTokenRDN
parent
8cd0fb23
Changes
3
Hide whitespace changes
Inline
Side-by-side
html/class_passwordRecovery.inc
View file @
aa0f3dc5
...
...
@@ -374,7 +374,7 @@ class passwordRecovery extends standAlonePage {
$ldap
=
$config
->
get_ldap_link
();
// Check if token branch is here
$token
=
get_ou
(
'
t
okenRDN'
)
.
get_ou
(
'fusiondirectoryRDN'
)
.
$config
->
current
[
'BASE'
];
$token
=
get_ou
(
'
recoveryT
okenRDN'
)
.
get_ou
(
'fusiondirectoryRDN'
)
.
$config
->
current
[
'BASE'
];
$ldap
->
cat
(
$token
,
array
(
'dn'
));
if
(
!
$ldap
->
count
())
{
/* It's not, let's create it */
...
...
@@ -421,7 +421,7 @@ class passwordRecovery extends standAlonePage {
/* Retrieve hash from the ldap */
$ldap
=
$config
->
get_ldap_link
();
$token
=
get_ou
(
'
t
okenRDN'
)
.
get_ou
(
'fusiondirectoryRDN'
)
.
$config
->
current
[
'BASE'
];
$token
=
get_ou
(
'
recoveryT
okenRDN'
)
.
get_ou
(
'fusiondirectoryRDN'
)
.
$config
->
current
[
'BASE'
];
$dn
=
"ou="
.
$this
->
uid
.
",
$token
"
;
$ldap
->
cat
(
$dn
);
$attrs
=
$ldap
->
fetch
();
...
...
include/functions.inc
View file @
aa0f3dc5
...
...
@@ -1010,8 +1010,8 @@ function get_ou($name)
$map
=
array
(
'fusiondirectoryRDN'
=>
'ou=fusiondirectory,'
,
'lockRDN'
=>
'ou=locks,'
,
'
t
okenRDN'
=>
'ou=
tokens
,'
,
'
fdR
eminderTokenRDN'
=>
'ou=reminder,'
,
'
recoveryT
okenRDN'
=>
'ou=
recovery
,'
,
'
r
eminderTokenRDN'
=>
'ou=reminder,'
,
'roleRDN'
=>
'ou=roles,'
,
'ogroupRDN'
=>
'ou=groups,'
,
'applicationRDN'
=>
'ou=apps,'
,
...
...
plugins/config/class_recoveryConfig.inc
View file @
aa0f3dc5
...
...
@@ -122,7 +122,7 @@ class recoveryConfig extends simplePlugin
global
$config
;
// Check if token branch is here
$ldap
=
$config
->
get_ldap_link
();
$tokenBranch
=
get_ou
(
'
t
okenRDN'
)
.
get_ou
(
'fusiondirectoryRDN'
)
.
$config
->
current
[
'BASE'
];
$tokenBranch
=
get_ou
(
'
recoveryT
okenRDN'
)
.
get_ou
(
'fusiondirectoryRDN'
)
.
$config
->
current
[
'BASE'
];
$ldap
->
cat
(
$tokenBranch
,
array
(
'dn'
));
if
(
!
$ldap
->
count
())
{
$ldap
->
cd
(
$config
->
current
[
'BASE'
]);
...
...
Write
Preview
Supports
Markdown
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