Skip to content

AnotherProksY/Easy-LDAP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Banner

Easy to use wrapper for commandline LDAP tools.
Written on Bash Script with Love ❤️

License Badge




Installation

  • Clone:
git clone https://github.com/AnotherProksY/Easy-LDAP.git
  • Run install script:
cd Easy-LDAP/
./install
  • Edit configuration file (will open automatically in install process):
####################################
#    Config file for Easy-LDAP     #
####################################
# Write your credentials correctly #
#  All info must be specified in   #
#          double quotes           #
####################################

# Your Domain for ldaps://..
domain="super.domain.com"

# Your username for auth
username="[email protected]"

# Your pass for auth
password="auth_password"

# Base DC
search_base="dc=super,dc=domain,dc=com"

####################################
  • Enjoy :)

To uninstall

  • Use this script:
~/.ezldap/uninstall

Usage examples

  • To find user:
ezldap -d Фазилов Камил -a memberOf department
ezldap -n Fazilov Kamil -a memberOf department
ezldap -l k.fazilov -a memberOf department
ezldap -e [email protected] -a memberOf department
  • To find group:
ezldap -g all-users -a objectSid
  • To add/delete user from group:
ezldap -m

'add' or 'delete' user from group [add/delete]: add
Copy 'DN' group attribute and paste here: CN=Developers,OU=Users,DC=example,DC=local                                 
Copy 'DN' user attribute and paste here: CN=Fazilov Kamil,OU=Users,DC=example,DC=local

Successfully add!

License and Attribution

Easy-LDAP is licensed under the MIT License, a short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.