private DirectoryEntry GetNewDirectoryEntry(string dn) { if (this.bindingPrefix == null) { this.bindingPrefix = string.Concat("LDAP://", this.context.GetServerName(), ":389", "/"); } //this.pathCracker.Set(dn, 4); //string str = this.pathCracker.Retrieve(7); return(DirectoryEntryManager.Bind(string.Concat(this.bindingPrefix, dn), this.context.UserName, this.context.Password, this.context.useServerBind())); }
internal static DirectoryEntry GetDirectoryEntry(DirectoryContext context, string dn) { string str = string.Concat("LDAP://", context.GetServerName(), "/"); /* NativeComInterfaces.IAdsPathname pathname = (NativeComInterfaces.IAdsPathname)(new NativeComInterfaces.Pathname()); * pathname.EscapedMode = 2; * pathname.Set(dn, 4); * string str1 = pathname.Retrieve(7); */ string str1 = dn; return(DirectoryEntryManager.Bind(string.Concat(str, str1), context.UserName, context.Password, context.useServerBind())); }
internal static DirectoryEntry GetDirectoryEntryInternal(DirectoryContext context, string path) { return(DirectoryEntryManager.Bind(path, context.UserName, context.Password, context.useServerBind())); }