openldap 0.0.2
openldap minimal binding
To use this package, run the following command in your project's root directory:
						Manual usage
						
						Put the following dependency into your project's dependences section:
					
dopenldap
dlang openldap simple binding
Minimal (connect to LDAP server, synchronous search and bind) bindig to openldap C library
Usage example
import openldap;
import std.stdio;
import std.format;
import std.string;
import std.experimental.logger;
void main() {
    globalLogLevel(LogLevel.info);
    int proto_version;
    auto ldap = LDAP("ldap://ldap.forumsys.com");
    ldap.get_option(LDAP_OPT_PROTOCOL_VERSION, &proto_version);
    if ( proto_version == 2) {
        proto_version = 3;
        ldap.set_option(LDAP_OPT_PROTOCOL_VERSION, &proto_version);
        info("Switched to protocl version 3");
    }
    auto r = ldap.search_s("dc=example,dc=com",
        LDAP_SCOPE_SUBTREE, "(uid=%s)".format("einstein"));
    infof("Found dn: %s", r[0].dn);
    foreach(k,v; r[0].entry) {
        infof("%s = %s", k, v);
    }
    int b = ldap.bind_s(r[0].dn, "password");
    infof("Bind using 'password': %s", b==0?"OK":"Fail");
    ldap.unbind();
}
- 0.0.2 released 10 years ago
 - ikod/dopenldap
 - LGPL-3.0
 - Copyright © 2015, igor
 
- Authors:
 - Dependencies:
 - none
 - Versions:
 - 
						
Show all 3 versions0.0.3 2023-Apr-02 0.0.2 2015-Dec-26 ~master 2023-Apr-02  - Download Stats:
 - 
						
- 
								
0 downloads today
 - 
								
0 downloads this week
 - 
								
3 downloads this month
 - 
								
184 downloads total
 
 - 
								
 - Score:
 - 0.8
 - Short URL:
 - openldap.dub.pm