실제로 LDAP를 모르지만 LDAP 인터페이스가 전체 하위 트리의 이동/이름 바꾸기 또는 복사를위한 상위 수준의 추상화를 제공하지 않으면 모든 하위 트리 노드를 이동/이름 바꾸기 또는 재귀 적으로 복사해야합니다. LDAP API는 이러한 옵션을 직접 제공하지 않습니다.
function copySubtree(oldDn, newDn)
{
copyNode(oldDn, newDn); // the new node will be created here
if (nodeHasChildren(oldDn) {
foreach (nodeGetChildren(oldDn) as childDn) {
childRdn=getRdn(childDn); // we have to get the 'local' part, the so called RDN
newChildDn=childRdn + ',' + newDn; // the new DN will be the old RDN concatenated with the new parent's DN
copySubtree(childDn, newChildDn); // call this function recursively
}
}
}
, 그것은이 DN :: Y249MDYwMDAwMTYzLG91PTA2MDAwMDE2MyxvdT0wNixvdT1Qcm92ZW5jZS1BbHBlcy0gQ8O0dGUgZCdBenVyLG91PURHUyxvdT1ER1N2MyxvPWVwaWNvbmNlcHQsYz1mcg의 == 같은 인코딩 및 –
을 anaything 내가 변경할 수 없습니다 그것은 그냥 Base64로 .. CN = 060000163, OU = 060000163, OU = 06, OU = 프로방스 알프스 코트 다 쥐르, ou = DGS, ou = DGSv3, o = epiconcept, c = fr –