Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
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
Liberate
backupninja
Commits
94730969
Commit
94730969
authored
18 years ago
by
micah
Browse files
Options
Downloads
Patches
Plain Diff
added ldaphost and tls variable as requested by stefani
parent
911ae7d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
examples/example.ldap
+6
-0
6 additions, 0 deletions
examples/example.ldap
handlers/ldap
+18
-2
18 additions, 2 deletions
handlers/ldap
with
25 additions
and
2 deletions
ChangeLog
+
1
−
0
View file @
94730969
...
...
@@ -68,6 +68,7 @@ version 0.9.4 -- unreleased
. Removed warning about vserver not running (thanks anarcat)
ldap:
. Compress now happens in-line to save some disk space (Closes: #370778)
. ldaphost and tls options added for ldapsearch method (Closes: #362027)
makecd:
. Added nicelevel option (thanks rhatto)
lib changes
...
...
This diff is collapsed.
Click to expand it.
examples/example.ldap
+
6
−
0
View file @
94730969
...
...
@@ -43,3 +43,9 @@
## to, not needed for slapcat
# binddn =
## ldaphost (no default): set this to your ldap host if it is not local
# ldaphost =
## tls (default yes): if set to 'yes' then TLS connection will be
## attempted to your ldaphost by using the URI base ldaps: otherwise ldap: will be used
# tls = yes
\ No newline at end of file
This diff is collapsed.
Click to expand it.
handlers/ldap
+
18
−
2
View file @
94730969
...
...
@@ -12,6 +12,14 @@ getconf restart no
getconf method ldapsearch
getconf passwordfile
getconf binddn
getconf ldaphost
getconf tls
yes
if
[
$tls
=
'yes'
]
URLBASE
=
"ldaps"
else
URLBASE
=
"ldap"
fi
status
=
"ok"
...
...
@@ -54,9 +62,17 @@ if [ "$ldif" == "yes" ]; then
debug
"
$execstr
"
else
if
[
"
$compress
"
==
"yes"
]
;
then
execstr
=
"
$LDAPSEARCH
-x -L -b ""
$dbsuffix
"" -D ""
$binddn
"" -y
$passwordfile
|
$GZIP
"
if
[
-n
"
$ldaphost
"
]
execstr
=
"
$LDAPSEARCH
-H
$URLBASE
://
$ldaphost
-x -L -b ""
$dbsuffix
"" -D ""
$binddn
"" -y
$passwordfile
|
$GZIP
"
else
execstr
=
"
$LDAPSEARCH
-x -L -b ""
$dbsuffix
"" -D ""
$binddn
"" -y
$passwordfile
|
$GZIP
"
fi
else
execstr
=
"
$LDAPSEARCH
-x -L -b ""
$dbsuffix
"" -D ""
$binddn
"" -y
$passwordfile
"
if
[
-n
"
$ldaphost
"
]
execstr
=
"
$LDAPSEARCH
-H
$URLBASE
://
$ldaphost
-x -L -b ""
$dbsuffix
"" -D ""
$binddn
"" -y
$passwordfile
"
else
execstr
=
"
$LDAPSEARCH
-x -L -b ""
$dbsuffix
"" -D ""
$binddn
"" -y
$passwordfile
"
fi
fi
[
-f
"
$passwordfile
"
]
||
fatal
"Password file
$passwordfile
not found. When method is set to ldapsearch, you must also specify a password file."
debug
"
$execstr
"
...
...
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