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
jlopez
wicopa
Commits
5c2bdcb2
Commit
5c2bdcb2
authored
Mar 05, 2020
by
jlopez
Browse files
Merge branch 'master' of
https://gitlab.mbb.univ-montp1.fr/jlopez/wicopa
into develop
parents
c8d4a8aa
eed362d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
action/action_login.php
View file @
5c2bdcb2
...
...
@@ -39,7 +39,7 @@ if($passcode == 1) {
$ldap
=
new
LDAPquery
();
$ldappasscode
=
$ldap
->
verifyPass
(
$login
,
$pwd
);
if
(
$ldappasscode
==
1
)
{
$_SESSION
[
'username'
]
=
$login
;
$_SESSION
[
'usercode'
]
=
3
;
...
...
dao/LDAPquery.php
View file @
5c2bdcb2
...
...
@@ -16,6 +16,7 @@ class LDAPquery {
public
function
openConnection
()
{
$this
->
ldaph
=
ldap_connect
(
Conf
::
$LDAP_HOSTNAME
);
if
(
!
$this
->
ldaph
)
{
die
(
"Impossible de se connecter au serveur LDAP "
.
Conf
::
$LDAP_HOSTNAME
);
}
...
...
@@ -47,4 +48,4 @@ class LDAPquery {
return
0
;
}
}
\ No newline at end of file
}
inc/conf/Conf.php.sample
View file @
5c2bdcb2
...
...
@@ -10,7 +10,7 @@ class Conf {
public
static
$DB_PP
=
''
;
// generate an admin password with: echo password|sha1sum|awk '{print $1}';
// generate an
"
admin
"
password with: echo password|sha1sum|awk '{print $1}';
public
static
$KK
=
"to_replace_with_your_admin_pass"
;
public
static
$LDAP_HOSTNAME
=
''
;
...
...
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