Correct Authentication Flags in ADSI and VB

Correct Authentication Flags in ADSI and VB

If you are unsuccessful at attempting to bind to an object residing in a Netscape Directory Server and you are using ADSI in VB or VBscript, you are likely using the incorrect Authentication flag used to define the binding options.

The method call used to bind to a directory server object using ADSI is OpenDSObject and it requires four parameters. One of the parameters is the authentication flag. The documented authentication flags are as follows:

         ADS_SECURE_AUTHENTICATION       = 0x1        ADS_USE_ENCRYPTION              = 0x2        ADS_USE_SSL                     = 0x2        ADS_READONLY_SERVER             = 0x4        ADS_PROMPT_CREDENTIALS  = 0x8        ADS_NO_AUTHENTICATION           = 0x10        ADS_FAST_BIND                   = 0x20        ADS_USE_SIGNING                 = 0x40        ADS_USE_SEALING         = 0x80        ADS_USE_DELEGATION              = 0x100        ADS_SERVER_BIND         = 0x200


None of these will work in this context with the Netscape Directory Server. The value, 0, must be used to bind success fully as in this example:

         Set ADs = GetObject("LDAP:")        Set ADsObject = ADs.OpenDSObject(strADsPath, strADMIN_DN, strADMIN_PW, 0)

Try this and you will succeed.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes