Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
#lang racket
|
||||
(require net/ldap)
|
||||
(ldap-authenticate "ldap.somewhere.com" 389 "uid=username,ou=people,dc=somewhere,dc=com" password)
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
#lang racket
|
||||
|
||||
(require ffi/unsafe ffi/unsafe/define)
|
||||
|
||||
(define-ffi-definer defldap (ffi-lib "libldap"))
|
||||
(defldap ldap_init (_fun _string _int -> _pointer))
|
||||
(defldap ldap_unbind (_fun _pointer -> _void))
|
||||
(defldap ldap_simple_bind_s (_fun _pointer _string _string -> _int))
|
||||
(defldap ldap_err2string (_fun _int -> _string))
|
||||
|
||||
(define name ...)
|
||||
(define password ...)
|
||||
(define ld (ldap_init "ldap.somewhere.com" 389))
|
||||
(ldap_simple_bind_s ld name password)
|
||||
|
||||
(ldap_unbind ld)
|
||||
Loading…
Add table
Add a link
Reference in a new issue