G
G
Gaio Documentation
English
Search
K

LDAP

LDAP administration endpoints
Enterprise version feature Only in the Enterprise version of Gaio is it possible to create integration with Microsoft Active Directory .

1. Authentication ( bind )

  • IP/host: address
  • Port: 1389
  • cn : connection user
  • secret : access password
Check with the support team to obtain authentication details

2. Add user ( ldapadd )

Required fields
  • dn : ou= user
  • User data: name , email , password , role
  • Possible values for user type (role):
    • dev
    • user
    • admin
Example: user file/data
dn : ou= user
name: David de Souza
password:mysecretpassword
role:dev
Considering that the data was saved in the file called a.ldif , use the command below
ldapadd -H ldap://mydomain.gaio.io:1389 -x -D cn =gaio -w asdfg -f a.ldif

3. Modify user ( ldapmodify )

Required fields
  • dn ( cn = email + ou): cn [email protected], ou= user
  • changetype : modify
  • User data: see examples
For all modifications to this topic, the command line below was used (data saved in the m.ldif file ):
ldapmodify -H ldap://mydomain.gaio.io:1389 -x -D cn =gaio -w asdfg -f m.ldif

3.1 Change status

  • values : active/inactive
  • replace : change_status
dn:cn = [email protected] ,ou = user
changetype : modify
replace : change_status
change_status :active

3.2 Add user to group

  • numeric values (group id) separated by comma: 2,67,48
  • replace : add_grodn: cn = [email protected],ou = user
changetype : modify
replace : add_group
add_group:2,67, 48

3.3 Remove user from group

  • numeric values (group id) separated by comma: 2,67,48
  • replace : remove_group
dn: cn = [email protected],ou = user
changetype : modify
replace : remove_group
remove_group:2,67, 48

3.4 Modify user type

  • values : dev / user /admin
  • replace : change_role
dn: cn = [email protected],ou = user
changetype : modify
replace : change_role
change_role:user

3.5 Modify email

values : new email
replace : change_email
dn: cn = [email protected],ou = user
changetype : modify
replace : change_email
change_email :[email protected]
3.6 Modify password
values : new password
replace : change_password
dn: cn = [email protected],ou = user
changetype : modify
replace : change_password
change_password : new_secret_password

4. Delete user ( ldapdelete )

the user's email via the LDAP delete function
ldapdelete -H ldap://mydomain.gaio.io:1389 -x -D cn = jay -w asdfg " cn [email protected], ou= user "