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:
Share on facebook
Share on twitter
Share on linkedin


The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS