static LdapPagedResultsControl() { // This is where we register the control responses { // Register the Paged Results Response class, which is returned by the server // in response to a Paged Results Request - same OID try { LdapControl.register(responseOID, System.Type.GetType("Novell.Directory.Ldap.Controls.LdapPagedResultsResponse")); } catch (System.Exception e) { System.Console.Error.WriteLine("Could not register response control for LdapPagedResultsControl"); System.Console.Error.WriteLine("Error message: " + e.Message); } } }
static LdapVirtualListControl() { /* * This is where we register the control responses */ { /* Register the VLV Sort Control class which is returned by the server * in response to a VLV Sort Request */ try { LdapControl.register(responseOID, System.Type.GetType("Novell.Directory.Ldap.Controls.LdapVirtualListResponse")); } catch (System.Exception e) { } } }
static LdapSortControl() { /* * This is where we register the control responses */ { /* * Register the Server Sort Control class which is returned by the * server in response to a Sort Request */ try { LdapControl.register(responseOID, Type.GetType("Novell.Directory.Ldap.Controls.LdapSortResponse")); } catch (Exception) { } } }
static LdapPersistSearchControl() { s_encoder = new LBEREncoder(); /* * This is where we register the control response */ { /* Register the Entry Change control class which is returned by the * server in response to a persistent search request */ try { // Register LdapEntryChangeControl LdapControl.register(responseOID, System.Type.GetType("Novell.Directory.Ldap.Controls.LdapEntryChangeControl")); } catch (System.Exception e) { } } }
static LdapVirtualListControl() { /* * This is where we register the control responses */ { /* * Register the VLV Sort Control class which is returned by the server * in response to a VLV Sort Request */ try { LdapControl.register(responseOID, System.Type.GetType("Novell.Directory.Ldap.Controls.LdapVirtualListResponse")); } catch (System.Exception e) { System.Console.Error.WriteLine("Could not register response control for LdapVirtualListControl"); System.Console.Error.WriteLine("Error message: " + e.Message); } } }