This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'sinatra' | |
| require 'net/ldap' | |
| ldap = Net::LDAP.new | |
| ldap.host = '192.168.1.1' | |
| ldap.port = 389 | |
| ldap.auth "username", "password" | |
| get '/people/:id' do | |
| filter = Net::LDAP::Filter.eq('cn', params[:id] + '*') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'sinatra' | |
| require 'net/ldap' | |
| ldap = Net::LDAP.new | |
| ldap.host = '192.168.1.1' | |
| ldap.port = 389 | |
| ldap.auth "username", "password" | |
| treebase = "dc=reputablecompany, dc=com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'sinatra' | |
| require 'net/ldap' | |
| ldap = Net::LDAP.new | |
| ldap.host = '192.168.1.1' | |
| ldap.port = 389 | |
| ldap.auth "username", "password" | |
| get '/people/:id' do | |
| filter = Net::LDAP::Filter.eq('cn', params[:id] + '*') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'sinatra' | |
| require 'net/ldap' | |
| ldap = Net::LDAP.new | |
| ldap.host = '192.168.1.1' | |
| ldap.port = 389 | |
| ldap.auth "username", "password" | |
| get '/people/:id' do | |
| filter = Net::LDAP::Filter.eq('cn', params[:id] + '*') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| … | |
| CN: ["TsInternetUsers"] | |
| CN: ["Group Policy"] | |
| CN: ["Jimmy Jones"] | |
| Department: ["Sales"] | |
| CN: ["Steve Dallas"] | |
| Department: ["Sales"] | |
| CN: ["Ken Johnson"] | |
| Department: ["Sales"] | |
| CN: ["Backup Operators"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'sinatra' | |
| require 'net/ldap' | |
| ldap = Net::LDAP.new | |
| ldap.host = '192.168.1.1' | |
| ldap.port = 389 | |
| ldap.auth "username", "password" | |
| filter = Net::LDAP::Filter.eq('CN', '* *') | |
| treebase = "dc=reputablecompany, dc=com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /Users/john/.rvm/gems/ruby-1.9.3-p194@AD/gems/net-ldap-0.3.1/lib/net/ldap/entry.rb:169:in 'method_missing': undefined method 'department' for #<Net::LDAP::Entry:0x007fc59384c9b0> (NoMethodError) | |
| from rs.rb:14:in `block in <main>' | |
| from /Users/john/.rvm/gems/ruby-1.9.3-p194@AD/gems/net-ldap-0.3.1/lib/net/ldap.rb:639:in `block in search' | |
| from /Users/john/.rvm/gems/ruby-1.9.3-p194@AD/gems/net-ldap-0.3.1/lib/net/ldap.rb:1410:in `block in search' | |
| from /Users/john/.rvm/gems/ruby-1.9.3-p194@AD/gems/net-ldap-0.3.1/lib/net/ldap.rb:1367:in `loop' | |
| from /Users/john/.rvm/gems/ruby-1.9.3-p194@AD/gems/net-ldap-0.3.1/lib/net/ldap.rb:1367:in `search' | |
| from /Users/john/.rvm/gems/ruby-1.9.3-p194@AD/gems/net-ldap-0.3.1/lib/net/ldap.rb:637:in `search' | |
| from rs.rb:12:in `<main>' | |
| iosdev:AD john$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'sinatra' | |
| require 'net/ldap' | |
| ldap = Net::LDAP.new | |
| ldap.host = '192.168.1.1' | |
| ldap.port = 389 | |
| ldap.auth "username", "password" | |
| filter = Net::LDAP::Filter.eq('CN', '*') | |
| treebase = "dc=reputablecompany, dc=com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /Users/john/.rvm/gems/ruby-1.9.3-p194@AD/gems/net-ldap-0.3.1/lib/net/ber/core_ext/string.rb:23:in `encode': "\x82" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError) | |
| from /Users/john/.rvm/gems/ruby-1.9.3-p194@AD/gems/net-ldap-0.3.1/lib/net/ber/core_ext/string.rb:23:in `raw_utf8_encoded' | |
| from /Users/john/.rvm/gems/ruby-1.9.3-p194@AD/gems/net-ldap-0.3.1/lib/net/ber/core_ext/string.rb:15:in `to_ber' | |
| from /Users/john/.rvm/gems/ruby-1.9.3-p194@AD/gems/net-ldap-0.3.1/lib/net/ldap.rb:1396:in `block in search' | |
| from /Users/john/.rvm/gems/ruby-1.9.3-p194@AD/gems/net-ldap-0.3.1/lib/net/ldap.rb:1367:in `loop' | |
| from /Users/john/.rvm/gems/ruby-1.9.3-p194@AD/gems/net-ldap-0.3.1/lib/net/ldap.rb:1367:in `search' | |
| from /Users/john/.rvm/gems/ruby-1.9.3-p194@AD/gems/net-ldap-0.3.1/lib/net/ldap.rb:637:in `search' | |
| from rs.rb:12:in `<main>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CN: ["IUSR_DDT95601"] | |
| CN: ["TsInternetUser\nCNF:1a83d6ca-f929-4c28-86c5-7bcde52ad40"] | |
| CN: ["IUSR_SERVER"] | |
| CN: ["InterwebUser"] | |
| CN: ["Group Creator"] | |
| CN: ["Jimmy Jones"] | |
| CN: ["Schema Admins"] | |
| CN: ["Steve Dallas"] |