Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
14bda093
Commit
14bda093
authored
12 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Removed deprecated not used method
parent
9fef649a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/class/ldap.class.php
+0
-45
0 additions, 45 deletions
htdocs/core/class/ldap.class.php
with
0 additions
and
45 deletions
htdocs/core/class/ldap.class.php
+
0
−
45
View file @
14bda093
...
@@ -135,51 +135,6 @@ class Ldap
...
@@ -135,51 +135,6 @@ class Ldap
// Connection handling methods -------------------------------------------
// Connection handling methods -------------------------------------------
/**
* Connects to the server. Just creates a connection which is used
* in all later access to the LDAP server. If it can't connect and bind
* anonymously, it creates an error code of -1. Returns true if connected,
* false if failed. Takes an array of possible servers - if one doesn't work,
* it tries the next and so on.
*
* @return void
* @deprecated Utiliser connect_bind a la place
*/
function
connect
()
{
foreach
(
$this
->
server
as
$key
=>
$host
)
{
if
(
preg_match
(
'/^ldap/'
,
$host
))
{
$this
->
connection
=
ldap_connect
(
$host
);
}
else
{
$this
->
connection
=
ldap_connect
(
$host
,
$this
->
serverPort
);
}
if
(
$this
->
connection
)
{
$this
->
setVersion
();
if
(
$this
->
serverType
==
"activedirectory"
)
{
$this
->
setReferrals
();
return
true
;
}
else
{
// Connected, now try binding anonymously
$this
->
result
=@
ldap_bind
(
$this
->
connection
);
}
return
true
;
}
}
$this
->
ldapErrorCode
=
-
1
;
$this
->
ldapErrorText
=
"Unable to connect to any server"
;
return
false
;
}
/**
/**
* Connect and bind
* Connect and bind
* Use this->server, this->serverPort, this->ldapProtocolVersion, this->serverType, this->searchUser, this->searchPassword
* Use this->server, this->serverPort, this->ldapProtocolVersion, this->serverType, this->searchUser, this->searchPassword
...
...
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