summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2014-05-11 06:07:34 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2014-05-11 06:07:34 (GMT)
commite1aa833138248238ceb23def33b3bfbfcc9f4b97 (patch) (side-by-side diff)
treed81c58dce0c3ca523cd9819c00e8040504ffc72e
parentebda1d26ab2bca51dbfcd4890b7a1969f3ed7f19 (diff)
downloadpam-modules-e1aa833138248238ceb23def33b3bfbfcc9f4b97.tar.gz
pam-modules-e1aa833138248238ceb23def33b3bfbfcc9f4b97.tar.bz2
Minor fix
* examples/usergitconfig: Use bindpw attribute.
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xexamples/usergitconfig6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/usergitconfig b/examples/usergitconfig
index ad2ab5e..16ae36b 100755
--- a/examples/usergitconfig
+++ b/examples/usergitconfig
@@ -53,13 +53,13 @@ Specifies the default base DN to use when performing ldap operations.
The base must be specified as a Distinguished Name in LDAP format.
=item B<binddn> I<DN>
Specifies the default bind DN to use.
-=item B<binddnpw> I<PASS>
+=item B<bindpw> I<PASS>
Specifies the password to use with B<binddn>.
=item B<uid> I<ATTR>
Name of the attribute to use instead of B<uid>. The LDAP record is searched
@@ -127,14 +127,14 @@ sub assert {
sub ldap_connect {
my $ldap = Net::LDAP->new($config{'uri'})
or die("Unable to connect to LDAP server $config{'uri'}: $!");
my @bindargs = ();
if (defined($config{'binddn'})) {
push(@bindargs, $config{'binddn'});
- push(@bindargs, password => $config{'bindpass'}) # FIXME
- if defined($config{'bindpass'});
+ push(@bindargs, password => $config{'bindpw'})
+ if defined($config{'bindpw'});
}
assert($ldap->bind(@bindargs), "binding to the server");
return $ldap;
}
# ###################################

Return to:

Send suggestions and report system problems to the System administrator.