Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我编写了一些代码(Java 和 LDAP)来在 Active Directory 中创建一个用户。 是否可以在我创建用户时在活动目录中将用户默认设置为活动(当他创建时) ,或者我是否必须修改用户? (创建时用户将始终拥有通行证)
只要用户有密码,您就可以在创建时通过设置userAccountControl来启用帐户512。根据您的创建/密码集代码的工作方式,您可能需要在第二个 LDAP 调用中执行此操作。
userAccountControl
512