Create new user in LDAP using ldif

Example ldif file

dn: ou=People,dc=example,dc=com
objectClass: organizationalUnit
ou: People

dn: ou=Groups,dc=example,dc=com
objectClass: organizationalUnit
ou: Groups

dn: cn=Artist,ou=Groups,dc=example,dc=com
objectClass: posixGroup
cn: SUBGROUP
gidNumber: 5000

dn: uid=ben,ou=People,dc=example,dc=com
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
uid: ben
sn: Affleck
givenName: Ben
cn: Ben Affleck
displayName: Ben
uidNumber: 10001
gidNumber: 5000
userPassword: benspassword
gecos: Ben Affleck
loginShell: /bin/bash
homeDirectory…

--

--

--

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Dockerize your API’s: FastAPI — Part2

Shiden dApps are now tracked on DappRadar

Deploy your First Smart Contract in 5 minutes

Tips for managing automation test data

Efficient Frontier Portfolio Optimisation in Python

Frequently used Active Support Methods in Ruby on Rails — Part 1

Week Ten: Semaphore Down

Post Processing Primer for Unity

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Donald Le

Donald Le

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.

More from Medium

How to Build a Docker Image For Running a Cron Job

How to get started with BPM Platform

Fresh Service — MY Experience with Analytics & Workflow Automator Features

Google Authentication using Hasura Backend Plus