diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-05-11 09:07:34 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-05-11 09:07:34 +0300 |
commit | e1aa833138248238ceb23def33b3bfbfcc9f4b97 (patch) | |
tree | d81c58dce0c3ca523cd9819c00e8040504ffc72e | |
parent | ebda1d26ab2bca51dbfcd4890b7a1969f3ed7f19 (diff) | |
download | pam-modules-e1aa833138248238ceb23def33b3bfbfcc9f4b97.tar.gz pam-modules-e1aa833138248238ceb23def33b3bfbfcc9f4b97.tar.bz2 |
Minor fix
* examples/usergitconfig: Use bindpw attribute.
-rwxr-xr-x | examples/usergitconfig | 6 |
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. | |||
53 | The base must be specified as a Distinguished Name in LDAP format. | 53 | The base must be specified as a Distinguished Name in LDAP format. |
54 | 54 | ||
55 | =item B<binddn> I<DN> | 55 | =item B<binddn> I<DN> |
56 | 56 | ||
57 | Specifies the default bind DN to use. | 57 | Specifies the default bind DN to use. |
58 | 58 | ||
59 | =item B<binddnpw> I<PASS> | 59 | =item B<bindpw> I<PASS> |
60 | 60 | ||
61 | Specifies the password to use with B<binddn>. | 61 | Specifies the password to use with B<binddn>. |
62 | 62 | ||
63 | =item B<uid> I<ATTR> | 63 | =item B<uid> I<ATTR> |
64 | 64 | ||
65 | Name of the attribute to use instead of B<uid>. The LDAP record is searched | 65 | Name of the attribute to use instead of B<uid>. The LDAP record is searched |
@@ -127,14 +127,14 @@ sub assert { | |||
127 | sub ldap_connect { | 127 | sub ldap_connect { |
128 | my $ldap = Net::LDAP->new($config{'uri'}) | 128 | my $ldap = Net::LDAP->new($config{'uri'}) |
129 | or die("Unable to connect to LDAP server $config{'uri'}: $!"); | 129 | or die("Unable to connect to LDAP server $config{'uri'}: $!"); |
130 | my @bindargs = (); | 130 | my @bindargs = (); |
131 | if (defined($config{'binddn'})) { | 131 | if (defined($config{'binddn'})) { |
132 | push(@bindargs, $config{'binddn'}); | 132 | push(@bindargs, $config{'binddn'}); |
133 | push(@bindargs, password => $config{'bindpass'}) # FIXME | 133 | push(@bindargs, password => $config{'bindpw'}) |
134 | if defined($config{'bindpass'}); | 134 | if defined($config{'bindpw'}); |
135 | } | 135 | } |
136 | assert($ldap->bind(@bindargs), "binding to the server"); | 136 | assert($ldap->bind(@bindargs), "binding to the server"); |
137 | return $ldap; | 137 | return $ldap; |
138 | } | 138 | } |
139 | 139 | ||
140 | # ################################### | 140 | # ################################### |