picatz / goldengirl

✨ All that shimmers is gold!
MIT License
3 stars 0 forks source link

implement LDAP server with docker #34

Open picatz opened 6 years ago

picatz commented 6 years ago

https://pypi.python.org/pypi/fakeldap

picatz commented 6 years ago

https://github.com/osixia/docker-openldap

BubsyJenkins commented 6 years ago

"sudo yum -y install python-setuptools gcc python-devel openldap-devel" is required for the first link

however, once i get to the "Michael Foord’s Mock library" portion i've been stuck

BubsyJenkins commented 6 years ago

https://github.com/twisted/ldaptor

BubsyJenkins commented 6 years ago

If we're doing this without a container here's what I have so far:

sudo yum -y install python-setuptools python-devel gcc git clone https://github.com/twisted/ldaptor.git cd ldaptor/ sudo chmod +x setup.py sudo yum -y install python-pip sudo pip install twisted pyparsing pyopenssl pycrypto service_identity sudo python setup.py install twistd -ny --pidfile=ldapserver.pid --logfile=ldapserver.log test-ldapserver.tac

This is still incomplete and not working though...

Please take a look!

SprainedCar22 commented 6 years ago

These are a few links I have found for just installing openLDAP. One is sort of like a chapter that goes over what everything does, and how to install it all. The other is another setup link. https://www.itzgeek.com/how-tos/linux/centos-how-tos/step-step-openldap-server-configuration-centos-7-rhel-7.html https://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-ldap.html

SprainedCar22 commented 6 years ago
  1. git clone https://github.com/osixia/docker-openldap
  2. sudo docker run --name my-openldap-container --detach osixia/openldap:1.1.11 #This give info on how it is running, and current config
  3. docker exec my-openldap-container ldapsearch -x -H ldap://localhost -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin #
    1. These commands work directly with the gitclone from osixia. Below is the custom config that I am working with.

This is for the custom config

  1. docker run --env LDAP_ORGANISATION=“Golden Image Test“ --env LDAP_DOMAIN=“emusec.com" --env LDAP_ADMIN_PASSWORD=“testinggi” --detach osixia/openldap:1.1.11
    1. This creates a custom docker image with the ldap config above.