项目作者: shubinmi

项目描述 :
Golang LDAP/Active Directory API wrapper around https://github.com/go-ldap/ldap. WS Agent and Server for LDAP RPC
高级语言: Go
项目地址: git://github.com/shubinmi/ldap.git
创建时间: 2020-03-16T14:51:11Z
项目社区:https://github.com/shubinmi/ldap

开源协议:MIT License

下载


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”: {
    1. "auth": {
    2. "dn": "CN=Test User,OU=Users,OU=St-Petersburg,OU=Staff,DC=corp,DC=test,DC=com"
    3. },
    4. "groupUsers": {
    5. "nodeDN": "CN=Clients,OU=Products,OU=Service Accounts,DC=corp,DC=test,DC=com"
    6. },
    7. "ouUsers": {
    8. "nodeDN": "TestGroup",
    9. "wantNames": ["Test 1", "Test 2"]
    10. }
    },
    “server”: {
    1. "auth": {
    2. "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\"}",
    3. "params": "{\"login\":\"corp\\\\test.user\",\"pass\":\"testPass\"}"
    4. }
    }
    }
    }`
  • Run tests in real ldap network