Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local_auth = IAuthU::Authenticator::Chained.build {
- #Use builtin ldap
- use IAuthU::Authenticator::LDAP.build {
- host 'ldap.someplace.com'
- port 389
- base "ou=people,o=ldap.someplace.com,o=cp"
- auth :method => :simple,
- :username => "cn=manager,dc=example,dc=com",
- :password => "opensesame"
- }
- #Add default user credential to all identities
- use lambda {|user,pass| {:credentials => [:user]}}
- }
Add Comment
Please, Sign In to add comment