Skip to content

Instantly share code, notes, and snippets.

@cowlike
Last active October 8, 2015 05:48
Show Gist options
  • Save cowlike/3287081 to your computer and use it in GitHub Desktop.
Save cowlike/3287081 to your computer and use it in GitHub Desktop.
@Grab(group='com.unboundid', module='unboundid-ldapsdk', version='2.3.1')
import com.unboundid.ldap.sdk.*
LDAPConnection.metaClass.bind = {SimpleBindRequest req -> println req; null}
LDAPConnection c = new LDAPConnection()
c.bind(new SimpleBindRequest())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment