Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'net/ldap'
- ldap = Net::LDAP.new(:host => '10.0.0.32', :port => 389)
- if ldap.bind(:method => :simple, :username => "ttyler",
- :password => "********")
- # authentication succeeded
- else
- # authentication failed
- p ldap.get_operation_result
- end
- #<OpenStruct extended_response=nil, code=49, error_message="80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1u0000", matched_dn="", message="Invalid Credentials">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement