zoukankan      html  css  js  c++  java
  • LDAP相关操作注意事项

     lc.Modify(entry.DN, new LdapModification(LdapModification.REPLACE, new LdapAttribute("mDBUseDefaults", "FALSE")));//必须大写

    对于布尔类型的属性值,必须要大写,否则报错;

     if (entry.getAttribute("mDBStorageQuota") != null)
                                            lc.Modify(entry.DN, new LdapModification(LdapModification.DELETE, new LdapAttribute("mDBStorageQuota")));

    在执行删除操作的时候,必须要先判断有无该属性,否则执行失败;

     lc.Modify(entry.DN, new LdapModification(LdapModification.REPLACE,
                                            new LdapAttribute("mDBStorageQuota","");//ERROR

    执行更新操作,需要注意的是,更新的值必须不能为空,否则报错。也就是说,要是清空某一个属性值,只能是执行DELETE删除该属性;

  • 相关阅读:
    海报
    mailto
    tab+tab
    tab22
    tab
    line-height属性详解
    vertical-align属性详解
    窗口关系及框架、窗口位置、窗口大小、导航和打开窗口
    cursor属性
    深入了解css3新特性
  • 原文地址:https://www.cnblogs.com/lishidefengchen/p/7536039.html
Copyright © 2011-2022 走看看