简体   繁体   English

使用JNDI启用Active Directory帐户

[英]Enabling an Active Directory account using JNDI

I have successfully created a disabled user in Active Directory via JNDI, but I am not sure how to enable it. 我已经通过JNDI在Active Directory中成功创建了一个禁用的用户,但是我不确定如何启用它。 Am I supposed to manipulate the userAccountControl attribute directly? 我应该直接操作userAccountControl属性吗? Thanks. 谢谢。

You are right. 你是对的。

Here are some values and the explanation how to use them : 以下是一些值及其用法说明

UF_TEMP_DUPLICATE_ACCOUNT       0x0100
UF_NORMAL_ACCOUNT               0x0200
UF_INTERDOMAIN_TRUST_ACCOUNT     0x0800
UF_WORKSTATION_TRUST_ACCOUNT     0x1000
UF_SERVER_TRUST_ACCOUNT       0x2000
UF_DONT_EXPIRE_PASSWD           0x10000
UF_SCRIPT                       0x0001
UF_ACCOUNTDISABLE               0x0002
UF_HOMEDIR_REQUIRED           0x0008
UF_LOCKOUT                     0x0010
UF_PASSWD_NOTREQD               0x0020
UF_PASSWD_CANT_CHANGE           0x0040

Exhaustive list of values here . 值的详尽列表

For example 例如

userAccountControl = 544

544 = 0x220 = UF_NORMAL_ACCOUNT | 544 = 0x220 = UF_NORMAL_ACCOUNT | UF_PASSWD_NOTREQD UF_PASSWD_NOTREQD

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 JNDI 修改“msExchHideFromAddressLists”Active Directory 属性 - Modifying “msExchHideFromAddressLists” Active Directory Attribute Using JNDI 带有Active Directory的JNDI PartialResultException - JNDI with Active Directory PartialResultException Java JNDI查找到Microsoft Active Directory(使用Tomcat 6),身份验证失败 - Java JNDI lookup to Microsoft Active Directory (using Tomcat 6), authentication failing 使用 JNDI 在 Active Directory 中创建自定义用户属性 - Creating custom user attributes in Active Directory using JNDI 使用 Java JNDI 类从 Active Directory 匿名获取 RootDSE - Get RootDSE from Active Directory anonymously using Java JNDI classes 使用Java JNDI更新信息活动目录数据。 - Update the information active directory data using the java JNDI ? 命名和目录(JNDI) - 使用JNDI的缺陷是什么 - Naming and Directory (JNDI) - What are Pitfalls for Using JNDI 如何使用 java 命名接口 (JNDI) 通过 Active Directory 验证用户凭据 - How to validate user credentials with active directory using java naming interface (JNDI) 使用未绑定ID更改“活动目录”中的帐户到期日期? - Change account expiration date in “active directory” using Unbound Id? Java-JNDI / Active Directory / Kerberos / WebLogic Server-密码配置 - Java - JNDI / Active Directory / Kerberos / WebLogic Server - Password Configuration
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM