public DirectoryRootInfo(string protocol, string server, ushort port, LdapPath path) { _protocol = protocol; _server = server; _port = port; _path = path; }
public static LdapPath Parse(string path) { int index = 0; int max = path.Length; LdapPath result = new LdapPath(); while (index < path.Length) { result._items.AddLast(LdapPathItem.Parse(path, ref index)); } return(result); }
public LdapPath GetChildPart() { LinkedListNode <LdapPathItem> current = _items.First; LdapPath path = new LdapPath(); while (current != null) { if (current.Value.IsDCPrefix) { break; } path._items.AddLast(current.Value); current = current.Next; } return(path); }
public LdapPath GetDomainPart() { LinkedListNode <LdapPathItem> current = _items.Last; LdapPath path = new LdapPath(); while (current != null) { if (!current.Value.IsDCPrefix) { break; } path._items.AddFirst(current.Value); current = current.Previous; } return(path); }
public bool IsChildOf(LdapPath parent) { LinkedListNode <LdapPathItem> current = _items.Last; LinkedListNode <LdapPathItem> other = parent._items.Last; while (current != null && other != null) { if (!other.Value.Equals(current.Value)) { return(false); } other = other.Previous; current = current.Previous; if (other == null) { return(true); } } return(false); }
public bool IsChildOf(LdapPath parent) { LinkedListNode<LdapPathItem> current = _items.Last; LinkedListNode<LdapPathItem> other = parent._items.Last; while (current != null && other != null) { if (!other.Value.Equals(current.Value)) { return false; } other = other.Previous; current = current.Previous; if (other == null) { return true; } } return false; }
public LdapPath GetDomainPart() { LinkedListNode<LdapPathItem> current = _items.Last; LdapPath path = new LdapPath(); while (current != null) { if (!current.Value.IsDCPrefix) { break; } path._items.AddFirst(current.Value); current = current.Previous; } return path; }
public LdapPath GetChildPart() { LinkedListNode<LdapPathItem> current = _items.First; LdapPath path = new LdapPath(); while (current != null) { if (current.Value.IsDCPrefix) { break; } path._items.AddLast(current.Value); current = current.Next; } return path; }
public static LdapPath Parse(string path) { int index = 0; int max = path.Length; LdapPath result = new LdapPath(); while (index < path.Length) { result._items.AddLast(LdapPathItem.Parse(path, ref index)); } return result; }
static LdapPath() { RootDSE = new LdapPath(); RootDSE._items.AddFirst(new LdapPathItem("RootDSE")); }
public DirectoryRootInfo(string protocol, LdapPath path) : this(protocol, null, 0, path) { }