public static StringBuffer getLdapValue(Attributes oAttrs, String proname)
            throws Exception {
        StringBuffer result = new StringBuffer();
        Attribute attrpro = oAttrs.get(proname);
        if (attrpro == null) {
            result.append("");
            return result;
        }
        NamingEnumeration attrpros = attrpro.getAll();
        try {
            while (attrpros.hasMore()) {
                String pro = (String) attrpros.next();
                result.append(pro+";");
            }
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            if (attrpros != null) {
                attrpros.close();
            }
        }
        return result;
    }