lita-ldap
Lita handler for ldap operations.
Installation
Add lita-ldap to your Lita instance's Gemfile:
gem "lita-ldap"
Configuration
Lita.configure do |config|
#required
config.handlers.ldap.host = 'localhost'
config.handlers.ldap.port = 1389
config.handlers.ldap.bind_dn = 'cn=admin,dc=ldap,dc=example,dc=com'
config.handlers.ldap.bind_password = 'admin'
config.handlers.ldap.base_dn = 'dc=ldap,dc=example,dc=com'
config.handlers.ldap.user_base_dn = 'ou=people' # append before base_dn
config.handlers.ldap.group_base_dn = 'ou=groups' # append before base_dn
end
Usage
- ldap search user nexus
- ldap search group nx-admin
- ldap search with filter 'cn=gerrit'
- ldap show dn 'cn=gerrit,ou=people,dc=ldap,dc=example,dc=com'
- ldap delete dn 'cn=gerrit,ou=people,dc=ldap,dc=example,dc=com'
- ldap delete tree dn 'ou=people,dc=ldap,dc=example,dc=com' #if supported
- ldap root dse