作者etchen (Mier)
看板java
标题[问题] 修改Active Directory属性
时间Thu Mar 20 21:49:26 2014
最近遇到一个问题,
我用jndi去修改Active Directory的telephoneNumber属性的值,
可是一直跟我说没有这样的属性。
查了oracle的说明文件,
http://docs.oracle.com/javase/tutorial/jndi/ops/modattrs.html
Windows Active Directory: Active Directory defines "telephonenumber" to be a
single-valued attribute, contrary to RFC 2256. To get this example to work
against Active Directory, you must either use an attribute other than
"telephonenumber", or change the DirContext.ADD_ATTRIBUTE to
DirContext.REPLACE_ATTRIBUTE.
我把ADD_ATTRIBUTE改成REPLACE_ATTRIBUTE也没办法改,
不知道版上是否有遇过这样的情况,
都是怎麽解决的呢?谢谢
--
荒废很久的blog > > > > > > >
http://mier0827.blogspot.tw/
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 36.231.42.136
1F:→ etchen:已解决,原来是searchFilter下错了>_< 03/20 21:54