File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -814,6 +814,12 @@ def search(args = {})
814
814
# unrecognized usernames and incorrect passwords. Use
815
815
# #get_operation_result to find out what happened in case of failure.
816
816
#
817
+ # Note: When using the simple authentication method, some A/D configurations
818
+ # will return success for a bind when no password is supplied! (this is the
819
+ # "Unauthenticated Authentication Mechanism of Simple Bind" covered under
820
+ # RFC4513 section 5.1.2). It's recommended to validate the presence of the
821
+ # password supplied when assuming a bind is authenticated.
822
+ #
817
823
# Here's a typical example using #bind to authenticate a credential which
818
824
# was (perhaps) solicited from the user of a web site:
819
825
#
@@ -823,7 +829,11 @@ def search(args = {})
823
829
# ldap.port = 389
824
830
# ldap.auth your_user_name, your_user_password
825
831
# if ldap.bind
826
- # # authentication succeeded
832
+ # if your_user_password.size > 0
833
+ # # authentication succeeded
834
+ # else
835
+ # # unauthenticated bind succeeded
836
+ # end
827
837
# else
828
838
# # authentication failed
829
839
# p ldap.get_operation_result
You can’t perform that action at this time.
0 commit comments