[問題] 修改Active Directory屬性

看板java作者 (Mier)時間11年前 (2014/03/20 21:49), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
最近遇到一個問題, 我用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
已解決,原來是searchFilter下錯了>_<
03/20 21:54, 1F
文章代碼(AID): #1JAl7gc6 (java)
文章代碼(AID): #1JAl7gc6 (java)