Fixes ldap_username overlap
This commit is contained in:
1 parent
3d5a14e6e5
commit
f409820383
2 files changed
+4
-4
No files matched your search
@@ -1,5 +1,8 @@
|
||||
<?php
|
||||
|
||||
define("LDAP_ENABLED", true);
|
||||
define("LDAP_SERVER", "pacman.neuf.no");
|
||||
|
||||
define("KSUFFIX", "cn=krbcontainer");
|
||||
define("ASUFFIX", "ou=Automount");
|
||||
define("USUFFIX", "ou=People");
|
||||
@@ -39,9 +42,6 @@ define("RADIUS_MYSQL_HOST", "snes.neuf.no");
|
||||
define("RADIUS_MYSQL_USER", apache_getenv("RADIUS_MYSQL_USER"));
|
||||
define("RADIUS_MYSQL_PASS", apache_getenv("RADIUS_MYSQL_PASS"));
|
||||
|
||||
define("LDAP_ENABLED", true);
|
||||
define("LDAP_SERVER", "pacman.neuf.no");
|
||||
|
||||
$api_keys = array();
|
||||
$api_keys[] = apache_getenv("API_KEY1");
|
||||
|
||||
|
||||
+1
-1
@@ -176,7 +176,7 @@ class User {
|
||||
$sql = sprintf("INSERT INTO din_user " .
|
||||
" (id, username, password, firstname, " .
|
||||
" lastname, addresstype, email, birthdate, " .
|
||||
" placeOfStudy, division_id_request) " . "VALUES " . " (%s, %s, PASSWORD(%s), %s, %s, %s, %s, " . " %s, %s, %s)", $this->conn->quoteSmart($this->id), $this->conn->quoteSmart($this->username), $this->conn->quoteSmart($this->password), $this->conn->quoteSmart($this->firstname), $this->conn->quoteSmart($this->lastname), $this->conn->quoteSmart($this->addresstype), $this->conn->quoteSmart($this->email), $this->conn->quoteSmart($this->birthdate), $this->conn->quoteSmart($this->placeOfStudy), $this->conn->quoteSmart(($this->division_id_request == NULL) ? NULL : $this->division_id_request));
|
||||
" placeOfStudy, division_id_request, ldap_username) " . "VALUES " . " (%s, %s, PASSWORD(%s), %s, %s, %s, %s, " . " %s, %s, %s, %s)", $this->conn->quoteSmart($this->id), $this->conn->quoteSmart($this->username), $this->conn->quoteSmart($this->password), $this->conn->quoteSmart($this->firstname), $this->conn->quoteSmart($this->lastname), $this->conn->quoteSmart($this->addresstype), $this->conn->quoteSmart($this->email), $this->conn->quoteSmart($this->birthdate), $this->conn->quoteSmart($this->placeOfStudy), $this->conn->quoteSmart(($this->division_id_request == NULL) ? NULL : $this->division_id_request), $this->conn->quoteSmart($this->username));
|
||||
$result = $this->conn->query($sql);
|
||||
if (DB :: isError($result) == true) {
|
||||
if ($result->getCode() == -5) {
|
||||
|
||||
Reference in new issue
Block a user