https://github.com/buildo/aip-active-directory-support-poc
https://github.com/buildo/aip-active-directory-support-poc
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/buildo/aip-active-directory-support-poc
- Owner: buildo
- Created: 2019-03-21T09:57:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-22T14:47:31.000Z (over 7 years ago)
- Last Synced: 2026-01-01T05:46:29.384Z (7 months ago)
- Language: CSS
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
This is a POC that demonstrate a possible configuration for supporting Active Directory integration for AIP.
# Launch everything
First build `openldap-sals-proxy-authorization` docker image with:
> ./build_docker_images.sh
Then launch everything with:
> ./start_poc.sh
# Future work
## Make
### Free Notes (ignore them)
#### Search in LDAP
#### Search in AD
ldapsearch -v -x -h 127.0.0.1 -p 389 -D "uid=test,ou=users,dc=hospital,dc=net" -w secret -b "ou=users,dc=hospital,dc=net"
#### trash
ldapsearch -x -h 127.0.0.1 -p 1389 -D uid=admin,ou=system -w secret -b ou=users,dc=hospital,dc=net
ldapsearch -x -h ldap://adpoc_ad_1 -p 1389 -D uid=admin,ou=system -w secret -b ou=users,dc=hospital,dc=net
ldapsearch -x -h 127.0.0.1 -p 389 -b ou=users,dc=hospital,dc=net -D uid=test,ou=system -w secret
ldapsearch -x -H ldap://adpoc_ldap_1 -b dc=example,dc=com -D samaccountname=test -w c2VjcmV0
ldapsearch -x -h 127.0.0.1 -p 389 -b dc=hospital,dc=net -D uid=test,ou=users,dc=hospital,dc=net -w c2VjcmV0
ldapsearch -x -h 127.0.0.1 -p 389 -b ou=users,dc=hospital,dc=net -D uid=admin,ou=system -w secret
```
$ ldapsearch -h ldaphostname -p 389 -x -b "dc=splunkers,dc=com"
All of the above options are necessary to perform a simple, anonymous bind to the LDAP server.
-h hostname
-p port number
-x tells ldapsearch to perform a simple_authentication (yes, you need this even for anonymous bind)
-b baseDN
```
ldapsearch -v -x -h 127.0.0.1 -p 389 -D "cn=Manager,dc=hospital,dc=net" -w SuperSecret -b "ou=users,dc=hospital,dc=net"
ldapsearch -v -x -h 127.0.0.1 -p 389 -D "uid=test,ou=users,dc=hospital,dc=net" -w secret -b "ou=users,dc=hospital,dc=net"