Added select baseDN with GUID

This commit is contained in:
Fatih Soydan 2013-10-02 00:58:22 +03:00
parent 4097a777e9
commit 4cab1ed4b7
1 changed files with 15 additions and 11 deletions

View File

@ -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);
}
}