[問題] 修改Active Directory屬性
最近遇到一個問題,
我用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
→
03/20 21:54, , 1F
03/20 21:54, 1F
java 近期熱門文章
PTT數位生活區 即時熱門文章