public String getAttribute ( final DirContext ctx , final String dn , final String attributeName ) throws NamingException { final Attributes attributes = ctx . getAttributes ( dn ) ; return getAttribute ( attributes , attributeName ) ; }
Retrieves an attribute by its name for the specified dn .