//            dn = "cn=1,cn=Users,DC=域名,DC=COM";
//            Attributes answer = ctx.getAttributes(dn);
//            for (NamingEnumeration ae = answer.getAll(); ae.hasMore();) {
//                Attribute attr = (Attribute) ae.next();
//                System.out.println("attribute: " + attr.getID());
//                /* Print each value */
//                for (NamingEnumeration e = attr.getAll(); e.hasMore(); System.out
//                        .println("value: " + e.next()))
//                    ;
//            }

posted on 2016-03-08 15:41  智华  阅读(2212)  评论(0编辑  收藏  举报