list irb history inside irb for copy paste
Posted: May 10, 2012 | Author: Kyle Crawford | Filed under: Uncategorized | Tags: copy, history, irb, list, paste, print, readline, recent, Ruby | Leave a comment »Simple
puts Readline::HISTORY.to_a
Found answer here
Get and use secure supported LDAP SASL authentication mechanisms
Posted: December 1, 2011 | Author: Kyle Crawford | Filed under: Active Directory, LDAP, Security, Unix | Tags: auth, authentication, digest, gssapi, Kerberos, LDAP, ldapsearch, list, mechanisms, password, sasl, security | Leave a comment »You don’t have to use insecure clear text Simple BIND authentication for accessing your LDAP servers.
Get list of supported authentication mechanisms:
ldapsearch -h example.com -x -b "" -s base -LLL supportedSASLMechanisms
Kerberos GSSAPI Example:
kinit ldapsearch -v -Y GSSAPI -h example.com -b "DC=example,DC=com" "(sAMAccountName=someusername)"
DIGEST-MD5 Example:
ldapsearch -v -Y DIGEST-MD5 -h example.com -U someusername -R example.com -b "DC=example,DC=com"\ "(sAMAccountName=someusername)"
Note: For Active Directory Digest Authentication to work, you may need to enable Reversible encryption on the account’s password and change the user’s password once.