Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment
Commits
9d47e1bd
Commit
9d47e1bd
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update ldap class
parent
9954be1f
No related branches found
No related tags found
1 merge request
!62
V2.0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
public_html/deployment/classes/ldap.class.php
+11
-11
11 additions, 11 deletions
public_html/deployment/classes/ldap.class.php
with
11 additions
and
11 deletions
public_html/deployment/classes/ldap.class.php
+
11
−
11
View file @
9d47e1bd
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
/**
/**
*
*
* IML LDAP CONNECTOR
* IML LDAP CONNECTOR
*
*
<pre>
* 2022-02-22 ah added objGet(), sanitizeFilter()
* 2022-02-22 ah added objGet(), sanitizeFilter()
<br>
* 2022-08-18 ah mask password (showing 4 chars only)
* 2022-08-18 ah mask password (showing 4 chars only)
<br>
* 2022-08-22 ah mhash is deprecated
* 2022-08-22 ah mhash is deprecated
<br>
* 2022-08-26 ah fix verifyPassword
* 2022-08-26 ah fix verifyPassword
<br>
*
*
</pre>
* @author axel.hahn@iml.unibe.ch
* @author axel.hahn@iml.unibe.ch
*/
*/
class
imlldap
{
class
imlldap
{
...
@@ -34,6 +34,7 @@ class imlldap {
...
@@ -34,6 +34,7 @@ class imlldap {
* @var object current ldap connection
* @var object current ldap connection
*/
*/
private
$_ldapConn
=
false
;
private
$_ldapConn
=
false
;
/**
/**
* @var bool bind was done?
* @var bool bind was done?
*/
*/
...
@@ -288,7 +289,7 @@ class imlldap {
...
@@ -288,7 +289,7 @@ class imlldap {
*
*
* @param array $aRecord singel result item
* @param array $aRecord singel result item
* @return array
* @return array
*/
public
function
normalizeSearchresult
(
$aLdapSearchresult
)
{
public
function
normalizeSearchresult
(
$aLdapSearchresult
)
{
if
(
!
is_array
(
$aLdapSearchresult
)){
if
(
!
is_array
(
$aLdapSearchresult
)){
return
false
;
return
false
;
...
@@ -300,7 +301,6 @@ class imlldap {
...
@@ -300,7 +301,6 @@ class imlldap {
}
}
return
$aReturn
;
return
$aReturn
;
}
}
*/
/**
/**
* sanitize value to put into a search filter
* sanitize value to put into a search filter
...
@@ -396,8 +396,8 @@ class imlldap {
...
@@ -396,8 +396,8 @@ class imlldap {
* It returns false if the user does not exist or is
* It returns false if the user does not exist or is
* not member of the group 'DnAppNode' (if it was set).
* not member of the group 'DnAppNode' (if it was set).
*
*
* @param
type
$sUser user id (uid) or email (mail) to search
* @param
string
$sUser user id (uid) or email (mail) to search
* @param
type
$aAttributesToGet i.e. array("ou", "sn", "vorname", "mail", "uid", "memberOf")
* @param
array
$aAttributesToGet i.e. array("ou", "sn", "vorname", "mail", "uid", "memberOf")
* @return boolean|array
* @return boolean|array
*/
*/
public
function
getUserInfo
(
$sUser
,
$aAttributesToGet
=
array
(
"*"
))
{
public
function
getUserInfo
(
$sUser
,
$aAttributesToGet
=
array
(
"*"
))
{
...
@@ -521,7 +521,7 @@ class imlldap {
...
@@ -521,7 +521,7 @@ class imlldap {
* this requires a ldap bind with master/ admin account
* this requires a ldap bind with master/ admin account
*
*
* @param string $sDn dn to update
* @param string $sDn dn to update
* @param
string
$aItem array of new ldap properties
* @param
array
$aItem array of new ldap properties
* @return boolean
* @return boolean
*/
*/
public
function
objAdd
(
$sDn
,
$aItem
)
{
public
function
objAdd
(
$sDn
,
$aItem
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment