Added select baseDN with GUID
This commit is contained in:
parent
4097a777e9
commit
4cab1ed4b7
26
lib/dn.js
26
lib/dn.js
|
@ -166,20 +166,24 @@ function parse(name) {
|
|||
name[cur] === ';' ||
|
||||
name[cur] === '+'));
|
||||
}
|
||||
if (name.substring(0,6)=='<GUID='){
|
||||
//maybe needs guid format check
|
||||
return name;
|
||||
} else {
|
||||
var rdns = [];
|
||||
|
||||
var rdns = [];
|
||||
|
||||
rdns.push(parseRdn());
|
||||
while (cur < len) {
|
||||
if (name[cur] === ',' || name[cur] === ';') {
|
||||
++cur;
|
||||
rdns.push(parseRdn());
|
||||
} else {
|
||||
throw invalidDN(name);
|
||||
rdns.push(parseRdn());
|
||||
while (cur < len) {
|
||||
if (name[cur] === ',' || name[cur] === ';') {
|
||||
++cur;
|
||||
rdns.push(parseRdn());
|
||||
} else {
|
||||
throw invalidDN(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return new DN(rdns);
|
||||
return new DN(rdns);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue