Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / class / Novell.Directory.Ldap / Novell.Directory.Ldap / LdapBindRequest.cs
index 0855929f3b8a0819099fd40663ebb1a89062f7f5..43eea90153a54df61faaf83cb95c3df3044cc150 100644 (file)
@@ -88,7 +88,36 @@ namespace Novell.Directory.Ldap
                {
                        return ;
                }
-               
+
+               /// <summary> Constructs a secure bind request.
+               /// 
+               /// </summary>
+               /// <param name="version"> The Ldap protocol version, use Ldap_V3.
+               /// Ldap_V2 is not supported.
+               /// 
+               /// </param>
+               /// <param name="dn">     If non-null and non-empty, specifies that the
+               /// connection and all operations through it should
+               /// be authenticated with dn as the distinguished
+               /// name.
+               /// 
+               /// </param>
+               /// <param name="mechanism"> Security mechanism code
+               /// 
+               /// </param>
+               /// <param name="passwd"> Security credentials
+               /// 
+               /// </param>
+               /// <param name="cont">Any controls that apply to the simple bind request,
+               /// or null if none.
+               /// </param>
+               [CLSCompliantAttribute(false)]
+               public LdapBindRequest(int version, System.String dn, String mechanism, sbyte[] credentials, LdapControl[]              
+               cont):base(LdapMessage.BIND_REQUEST, new RfcBindRequest(version, dn, mechanism, credentials), cont)
+               {
+                       return ;
+               }
+               
                /// <summary> Return an Asn1 representation of this add request.
                /// 
                /// #return an Asn1 representation of this object.