--nextPart9097051.3FEqdTKOQb
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"

Hello Rex,

On Thursday 26 March 2015 19:33:24, Rex Zhang <rexzhang / cienet.com.cn> wrote:
> And below is the output. It looks like what I need are in @myhash, but
> how to get this hash or I have to parse it as string?

According to the documentation [1], you can either use the #get_attr instance 
method or rely on #method_missing to turn any key into a proper call to 
#get_attr.

E.g.:

	user.get_attr :name
	user.name

HTH.

		--- Eric


[1] http://www.rubydoc.info/gems/active_directory/1.6.0/ActiveDirectory/Base
--nextPart9097051.3FEqdTKOQb
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAABAgAGBQJVFIbvAAoJEIXD2TZ1epVBx9cP/RIs7Up8KfIbsGDtzbLBliSN
eNicyRQOuTxar3elRCTu/QQ48oY0d8mblFjD0xd3vOcwF6JUwlA4H7acwEFgB/te
bYAYB5sgkTZ/xKdAwKzXNooTDyQsiI0Q28DFNOXlYADHdAakoWvHfc/sgD5kY2Y2
109AlgkYx/gciFIekpg+7Q/rvtValmDvyi7xZ4TeMfWyENni/BNTh7Zq2bOsHITh
tRAEaTRiCRRaZZIlFQ2khz48vhIwAL90IAthKw0gprEi9JZjT/GOl74N/U8gL4pi
z6EaER/cpU/dS9Y1vMlB8CL4Dnsy1HPiOSOoWdgXTBOWv5DiYpSXqyIV3XkmoXXK
vuP42/qAOKhNMOHYCwVCVaGkyydzJpZkMBFD7HcPbDTt14rOw4PCVPAHbDvlcTel
axZ6iKzbF6GhJn32RUFLGEpMePSfPIfsvhu1eIQz5SEJQ3nkQYbpt1FzqxBe8z4Y
34h/Q8j6UHIvru6ICfvPp+syxYGti5aB+gpzqgg7fmUcJrObfWx87MPqlYVoXZxw
SU+GFan0SxCuRPFHFo1MCZBLnaNkwDwahWsgjiGeiIO8myIXGcXq4GXI+S6gcZrj
Tc0SE/ugjqBleI/TChH0wYceywx0jrRVokdpRjbVZfoLMrHUP186yzgBlvFZq+SM
gKCcvTeXpdN7GZ3PILc1
=ZrmD
-----END PGP SIGNATURE-----

--nextPart9097051.3FEqdTKOQb--