示例#1
0
        public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier)
        {
            if (identifier == null)
                throw new ArgumentNullException("identifier");

            directoryIdentifier = identifier;
            _dsmlHttpConnection = (HttpWebRequest)WebRequest.Create(((DsmlDirectoryIdentifier)directoryIdentifier).ServerUri);
            Hashtable tempTable = new Hashtable();
            _httpConnectionTable = Hashtable.Synchronized(tempTable);
        }
 public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier)
 {
     this.dsmlSoapAction = "\"#batchRequest\"";
     this.dsmlAuthType = System.DirectoryServices.Protocols.AuthType.Negotiate;
     if (identifier == null)
     {
         throw new ArgumentNullException("identifier");
     }
     base.directoryIdentifier = identifier;
     this.dsmlHttpConnection = (HttpWebRequest) WebRequest.Create(((DsmlDirectoryIdentifier) base.directoryIdentifier).ServerUri);
     Hashtable table = new Hashtable();
     this.httpConnectionTable = Hashtable.Synchronized(table);
 }
示例#3
0
        public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier)
        {
            if (identifier == null)
            {
                throw new ArgumentNullException("identifier");
            }

            directoryIdentifier = identifier;
            _dsmlHttpConnection = (HttpWebRequest)WebRequest.Create(((DsmlDirectoryIdentifier)directoryIdentifier).ServerUri);
            Hashtable tempTable = new Hashtable();

            _httpConnectionTable = Hashtable.Synchronized(tempTable);
        }
 public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier, NetworkCredential credential) : this(identifier)
 {
     NetworkCredential      networkCredential;
     DsmlSoapHttpConnection dsmlSoapHttpConnection = this;
     if (credential != null)
     {
         networkCredential = new NetworkCredential(credential.UserName, credential.Password, credential.Domain);
     }
     else
     {
         networkCredential = null;
     }
     dsmlSoapHttpConnection.directoryCredential = networkCredential;
 }
        public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier)
        {
            this.dsmlSoapAction = "\"#batchRequest\"";
            this.dsmlAuthType   = System.DirectoryServices.Protocols.AuthType.Negotiate;
            if (identifier == null)
            {
                throw new ArgumentNullException("identifier");
            }
            base.directoryIdentifier = identifier;
            this.dsmlHttpConnection  = (HttpWebRequest)WebRequest.Create(((DsmlDirectoryIdentifier)base.directoryIdentifier).ServerUri);
            Hashtable table = new Hashtable();

            this.httpConnectionTable = Hashtable.Synchronized(table);
        }
 public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier)
 {
     this.dsmlSoapAction = "\"#batchRequest\"";
     this.dsmlAuthType   = AuthType.Negotiate;
     if (identifier != null)
     {
         this.directoryIdentifier = identifier;
         this.dsmlHttpConnection  = (HttpWebRequest)WebRequest.Create(((DsmlDirectoryIdentifier)this.directoryIdentifier).ServerUri);
         Hashtable hashtables = new Hashtable();
         this.httpConnectionTable = Hashtable.Synchronized(hashtables);
         return;
     }
     else
     {
         throw new ArgumentNullException("identifier");
     }
 }
示例#7
0
 public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier, NetworkCredential credential, AuthType authType) : this(identifier, credential)
 {
     AuthType = authType;
 }
示例#8
0
 public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier, NetworkCredential credential) : this(identifier)
 {
     directoryCredential = (credential != null) ? new NetworkCredential(credential.UserName, credential.Password, credential.Domain) : null;
 }
 public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier, NetworkCredential credential, AuthType authType)
 {
     throw new NotImplementedException();
 }
示例#10
0
 public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier)
 {
     throw new NotImplementedException();
 }
示例#11
0
		public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier, NetworkCredential credential) : this(identifier)
		{
			NetworkCredential networkCredential;
			DsmlSoapHttpConnection dsmlSoapHttpConnection = this;
			if (credential != null)
			{
				networkCredential = new NetworkCredential(credential.UserName, credential.Password, credential.Domain);
			}
			else
			{
				networkCredential = null;
			}
			dsmlSoapHttpConnection.directoryCredential = networkCredential;
		}
 public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier, NetworkCredential credential, System.DirectoryServices.Protocols.AuthType authType) : this(identifier, credential)
 {
     this.AuthType = authType;
 }
示例#13
0
		public DsmlSoapHttpConnection (DsmlDirectoryIdentifier identifier, NetworkCredential credential, AuthType authType)
		{
			throw new NotImplementedException ();
		}
示例#14
0
		public DsmlSoapHttpConnection (DsmlDirectoryIdentifier identifier)
		{
			throw new NotImplementedException ();
		}
 public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier, NetworkCredential credential) : this(identifier)
 {
     base.directoryCredential = (credential != null) ? new NetworkCredential(credential.UserName, credential.Password, credential.Domain) : null;
 }
示例#16
0
 public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier, NetworkCredential credential, AuthType authType) : this(identifier, credential)
 {
     AuthType = authType;
 }
 public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier, NetworkCredential credential, System.DirectoryServices.Protocols.AuthType authType) : this(identifier, credential)
 {
     this.AuthType = authType;
 }
示例#18
0
		public DsmlSoapHttpConnection(DsmlDirectoryIdentifier identifier)
		{
			this.dsmlSoapAction = "\"#batchRequest\"";
			this.dsmlAuthType = AuthType.Negotiate;
			if (identifier != null)
			{
				this.directoryIdentifier = identifier;
				this.dsmlHttpConnection = (HttpWebRequest)WebRequest.Create(((DsmlDirectoryIdentifier)this.directoryIdentifier).ServerUri);
				Hashtable hashtables = new Hashtable();
				this.httpConnectionTable = Hashtable.Synchronized(hashtables);
				return;
			}
			else
			{
				throw new ArgumentNullException("identifier");
			}
		}