Apache Directory Studio 如何添加新用户

ApacheDS 的相关中文资料真是太少了,英文资料也不好找呀,官网的基本上是需要耗费大量时间来学习 

上网上找了 一篇文章  ,按着下面的操作,可以方便的添加新用户,以及如何检查是否正确


另外几个缩写的意思如下:

cn :common name 常用名

sn:surname   别名


1.Right-click on the ou=users node and select New Entry. The New Entry wizard appears. 


2.In the Entry Creation Method pane, you do not need to change any settings. Click Next. 

3.In the Object Classes pane, select inetOrgPerson from the list of Available object classes on the left and then click Add to populate the list of Selected object classes. Click Next. 

4.In the Distinguished Name pane, complete the RDN field, putting uid in front and jdoe after the equals sign. Click Next. 

5.Now fill in the remaining mandatory attributes in the Attributes pane. Set the cn (common name) attribute toJohn Doe and the sn (surname) attribute to Doe. Click Finish. 

6.Add a userPassword attribute to the user entry. In the LDAP Browser view, you should now be able to see a new node, uid=jdoe. Select the uid=jdoe node. Now, right-click in the Entry Editor view and select New Attribute. The New Attribute wizard appears. 

7.From the Attribute type drop-down list, select userPassword. Click Finish. 

8.The Password Editor dialog appears. In the Enter New Password field, enter the password, 123456. ClickOk. 

9.To add more users, repeat steps 7 to 14. 

10.To verify new created user and password, right-click the connection name, select Properties, click onAuthentication, enter the username you just created and the password. 

or you can test connection with apacheDS API, sample: 

Java代码 
LdapConnection connection = new LdapNetworkConnection("192.168.71.82", 10389); 
BindRequest bindRequest = new BindRequestImpl(); 
Dn dn = new Dn("uid=mike,ou=users,ou=system"); 
bindRequest.setDn(dn); 
bindRequest.setCredentials("123456"); 
BindResponse bindResponse = connection.bind(bindRequest); 
System.out.println(bindResponse.getLdapResult()); 
connection.unBind(); 
connection.close();
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值