Skip to content

Commit a1978eb

Browse files
committed
Bind with full DN
1 parent 05133c1 commit a1978eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_integration.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ def setup
1717
end
1818

1919
def test_bind_success
20-
assert @ldap.bind(method: :simple, username: "user1", password: "passworD1"), @ldap.get_operation_result.inspect
20+
assert @ldap.bind(method: :simple, username: "uid=user1,ou=People,dc=rubyldap,dc=com", password: "passworD1"), @ldap.get_operation_result.inspect
2121
end
2222

2323
def test_bind_success_anonymous
24-
assert @ldap.bind(method: :simple, username: "user1", password: ""), @ldap.get_operation_result.inspect
24+
assert @ldap.bind(method: :simple, username: "uid=user1,ou=People,dc=rubyldap,dc=com", password: ""), @ldap.get_operation_result.inspect
2525
end
2626

2727
def test_bind_fail
28-
refute @ldap.bind(method: :simple, username: "user1", password: "not my password"), @ldap.get_operation_result.inspect
28+
refute @ldap.bind(method: :simple, username: "uid=user1,ou=People,dc=rubyldap,dc=com", password: "not my password"), @ldap.get_operation_result.inspect
2929
end
3030
end
3131
end

0 commit comments

Comments
 (0)