Skip to content

Instantly share code, notes, and snippets.

@sarahhodne
Created September 25, 2010 20:54
Show Gist options
  • Save sarahhodne/597300 to your computer and use it in GitHub Desktop.
Save sarahhodne/597300 to your computer and use it in GitHub Desktop.
› irb -Ilib -I. -rldap
>> l = LDAP.new('ldap.cluenet.org')
=> #<LDAP:0x0000010097b458>
>> l.version = 3
=> 3
>> l.start_tls
=> true
>> l.search('cn=imaginary.cluenet.org,ou=servers,dc=cluenet,dc=org', '(cn=*)', :subtree)
=> [#<LDAP::Message:0x00000100952af8>, #<LDAP::Message:0x00000100952ad0>, #<LDAP::Message:0x00000100952a80>, #<LDAP::Message:0x00000100952a58>, #<LDAP::Message:0x00000100952a08>, #<LDAP::Message:0x000001009529e0>, #<LDAP::Message:0x00000100952990>, #<LDAP::Message:0x00000100952968>, #<LDAP::Message:0x00000100952918>]
>> l.search('cn=imaginary.cluenet.org,ou=servers,dc=cluenet,dc=org', '(cn=*)', :subtree)
=> [#<LDAP::Message:0x0000010093b1a0>, #<LDAP::Message:0x0000010093b178>, #<LDAP::Message:0x0000010093b128>, #<LDAP::Message:0x0000010093b100>, #<LDAP::Message:0x0000010093b088>, #<LDAP::Message:0x0000010093b038>, #<LDAP::Message:0x0000010093afe8>, #<LDAP::Message:0x0000010093afc0>, #<LDAP::Message:0x0000010093af70>]
>> l.search('cn=imaginary.cluenet.org,ou=servers,dc=cluenet,dc=org', '(cn=*)', :subtree)
=> [#<LDAP::Message:0x0000010086b590>, #<LDAP::Message:0x0000010086b4c8>, #<LDAP::Message:0x0000010086b3b0>, #<LDAP::Message:0x0000010086b2c0>, #<LDAP::Message:0x0000010086b270>, #<LDAP::Message:0x0000010086b108>, #<LDAP::Message:0x0000010086b068>, #<LDAP::Message:0x0000010086af78>, #<LDAP::Message:0x0000010086aed8>]
>> l.search('cn=imaginary.cluenet.org,ou=servers,dc=cluenet,dc=org', '(cn=*)', :subtree)
Assertion failed: (LBER_VALID( ber )), function ber_free_buf, file /SourceCache/LDAPFramework/OpenLDAP-143.2/OpenLDAP/libraries/liblber/io.c, line 190.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment