Skip to content

Instantly share code, notes, and snippets.

@BanzaiMan
Created February 3, 2009 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BanzaiMan/57253 to your computer and use it in GitHub Desktop.
Save BanzaiMan/57253 to your computer and use it in GitHub Desktop.
irb(main):003:0> LDAP.methods-Class.methods => ["entry2hash", "mod",
"err2string", "dn2ufn", "hash2mods"]
irb(main):005:0> LDAP::Conn.methods-Object.methods => ["set_option",
"get_option", "open"]
irb(main):008:0> l=LDAP::Conn.new; (l.methods-Object.methods).sort => ["add",
"add_ext", "bind", "bound?", "compare", "compare_ext", "controls", "delete",
"delete_ext", "err", "err2string", "get_option", "modify", "modify_ext",
"modrdn", "perror", "referrals", "result2error", "sasl_bind", "sasl_quiet",
"sasl_quiet=", "search", "search2", "search_ext", "search_ext2", "set_option",
"simple_bind", "start_tls", "unbind"]
irb(main):011:0> c=LDAP::Control.new; (c.methods-Object.methods).sort =>
["critical", "critical=", "critical?", "iscritical", "iscritical=", "oid",
"oid=", "value", "value="]
irb(main):018:0> (LDAP::SSLConn.methods-Class.methods).sort => ["get_option",
"open", "set_option"]
irb(main):021:0> s=LDAP::SSLConn.new; (s.methods-Object.methods).sort =>
["add", "add_ext", "bind", "bound?", "compare", "compare_ext", "controls",
"delete", "delete_ext", "err", "err2string", "get_option", "modify",
"modify_ext", "modrdn", "perror", "referrals", "result2error", "sasl_bind",
"sasl_quiet", "sasl_quiet=", "search", "search2", "search_ext", "search_ext2",
"set_option", "simple_bind", "start_tls", "unbind"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment