https://github.com/shubinmi/ldap
Golang LDAP/Active Directory API wrapper around https://github.com/go-ldap/ldap. WS Agent and Server for LDAP RPC
https://github.com/shubinmi/ldap
golang-ldap ldap-rpc ws-agent
Last synced: 4 months ago
JSON representation
Golang LDAP/Active Directory API wrapper around https://github.com/go-ldap/ldap. WS Agent and Server for LDAP RPC
- Host: GitHub
- URL: https://github.com/shubinmi/ldap
- Owner: shubinmi
- License: mit
- Created: 2020-03-16T14:51:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-24T16:47:46.000Z (about 6 years ago)
- Last Synced: 2024-06-20T16:47:50.149Z (almost 2 years ago)
- Topics: golang-ldap, ldap-rpc, ws-agent
- Language: Go
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LDAP / Active Directory
Golang LDAP/Active Directory API wrapper around https://github.com/go-ldap/ldap. WS Agent and Server for LDAP RPC
### Why
- This repo has high level wrapper around some main functions https://github.com/go-ldap/ldap
- Because it allows you to serve LDAP RPC for this function from the box
#### Contribute
- Create tests_conf.json with data
- `{
"ldap": {
"url": "ldap://corp.test.com",
"dn": "dc=corp,dc=test,dc=com",
"user": "corp\\test.user",
"pass": "testPass"
},
"tests" : {
"client": {
"auth": {
"dn": "CN=Test User,OU=Users,OU=St-Petersburg,OU=Staff,DC=corp,DC=test,DC=com"
},
"groupUsers": {
"nodeDN": "CN=Clients,OU=Products,OU=Service Accounts,DC=corp,DC=test,DC=com"
},
"ouUsers": {
"nodeDN": "TestGroup",
"wantNames": ["Test 1", "Test 2"]
}
},
"server": {
"auth": {
"data": "{\"Name\":\"Test User\",\"DN\":\"CN=Test User,OU=Users,OU=St-Petersburg,OU=Staff,DC=corp,DC=test,DC=com\",\"CN\":\"Test User\",\"Mail\":\"test.user@test.com\",\"Phone\":\"\",\"Logon\":\"test.user\"}",
"params": "{\"login\":\"corp\\\\test.user\",\"pass\":\"testPass\"}"
}
}
}
}`
- Run tests in real ldap network