/// <summary> /// Returns the effective rights of one object to a list of attributes of another object. /// /// To use this class, you must instantiate an object of this class and then /// call the extendedOperation method with this object as the required /// LdapExtendedOperation parameter. /// /// The returned LdapExtendedResponse object can then be converted to /// a GetEffectivePrivilegesListResponse object with the ExtendedResponseFactory class. /// The GetEffectivePrivilegesListResponse class contains methods for /// retrieving the list of effective rights. /// /// The getEffectivePrivilegesRequest extension uses the following OID: /// 2.16.840.1.113719.1.27.100.103 /// /// The requestValue has the following format: /// /// requestValue ::= /// dn LdapDN /// trusteeDN LdapDN /// SEQUENCE of attrNames LdapDN /// </summary> static GetEffectivePrivilegesListRequest() { try { LdapExtendedResponse.register(ReplicationConstants.GET_EFFECTIVE_LIST_PRIVILEGES_RES, Type.GetType("Novell.Directory.Ldap.Extensions.GetEffectivePrivilegesListResponse")); } catch (Exception) { Console.Error.WriteLine("Could not register Extended Response - Class not found"); } }
static GetReplicaInfoRequest() { /* * Register the extendedresponse class which is returned by the * server in response to a ListReplicasRequest */ try { LdapExtendedResponse.register(ReplicationConstants.GET_REPLICA_INFO_RES, Type.GetType("Novell.Directory.Ldap.Extensions.GetReplicaInfoResponse")); } catch (Exception e) { Console.Error.WriteLine("Could not register Extended Response -" + " Class not found"); } }
static PartitionEntryCountRequest() { /* * Register the extendedresponse class which is returned by the * server in response to a ListReplicasRequest */ try { LdapExtendedResponse.register(ReplicationConstants.NAMING_CONTEXT_COUNT_RES, System.Type.GetType("Novell.Directory.Ldap.Extensions.PartitionEntryCountResponse")); } catch (System.Exception e) { System.Console.Error.WriteLine("Could not register Extended Response -" + " Class not found"); } }
static GetBindDNRequest() { /* * Register the extendedresponse class which is returned by the * server in response to a ListReplicasRequest */ try { LdapExtendedResponse.register(ReplicationConstants.GET_IDENTITY_NAME_RES, System.Type.GetType("Novell.Directory.Ldap.Extensions.GetBindDNResponse")); } catch (System.Exception e) { System.Console.Error.WriteLine("Could not register Extended Response -" + " Class not found"); } }
static GetEffectivePrivilegesRequest() { /* * Register the extendedresponse class which is returned by the * server in response to a ListReplicasRequest */ try { LdapExtendedResponse.register(ReplicationConstants.GET_EFFECTIVE_PRIVILEGES_RES, System.Type.GetType("Novell.Directory.Ldap.Extensions.GetEffectivePrivilegesResponse")); } catch (System.Exception e) { System.Console.Error.WriteLine("Could not register Extended Response -" + " Class not found"); } }
static LdapBackupRequest() { /* * Register the extendedresponse class which is returned by the server * in response to a LdapBackupRequest */ try { LdapExtendedResponse.register( BackupRestoreConstants.NLDAP_LDAP_BACKUP_RESPONSE, Type.GetType("Novell.Directory.Ldap.Extensions.LdapBackupResponse")); } catch (TypeLoadException e) { Console.Error.WriteLine("Could not register Extended Response - Class not found"); } catch (Exception e) { Console.Error.WriteLine(e.StackTrace); } }
/// <summary> /// Returns the effective rights of one object to a list of attributes of another object. /// To use this class, you must instantiate an object of this class and then /// call the extendedOperation method with this object as the required /// LdapExtendedOperation parameter. /// The returned LdapExtendedResponse object can then be converted to /// a GetEffectivePrivilegesListResponse object with the ExtendedResponseFactory class. /// The GetEffectivePrivilegesListResponse class contains methods for /// retrieving the list of effective rights. /// The getEffectivePrivilegesRequest extension uses the following OID: /// 2.16.840.1.113719.1.27.100.103 /// The requestValue has the following format: /// requestValue ::= /// dn LdapDN /// trusteeDN LdapDN /// SEQUENCE of attrNames LdapDN /// </summary> static GetEffectivePrivilegesListRequest() { LdapExtendedResponse.register(ReplicationConstants.GET_EFFECTIVE_LIST_PRIVILEGES_RES, typeof(GetEffectivePrivilegesListResponse)); }