本記述例では、次の環境を想定しています。ご使用の環境にあわせて変更してください。
リポジトリ作成時の公開ディレクトリを“ou=interstage,o=fujitsu,dc=com”としています。
ユーザ情報の場所を“ou=User,ou=interstage,o=fujitsu,dc=com”としています。
ユーザ情報のRDNを“cn”としています。
userには、削除する利用者名をjava.lang.Stringで指定してください。
ctxは、共通の前処理で得られた結果を使用します。
【前処理】 : String dn = "cn=" + user + ",ou=User,ou=interstage,o=fujitsu,dc=com"; ctx.destroySubcontext(dn); : 【後処理】 |