Quantcast
Channel: Forumul SQL Server Setup
Viewing all articles
Browse latest Browse all 7686

ldap_bind() not working on windows 2012 and database is ms sql server

$
0
0

ldap_connect function is working but when i tried use "ldap_bind" function it returns an empty result.

I tried with domain name and username still its not working.Windows server is 2012. below is my code


   $ldapServer = 'ldap://server:389';
            $ldapServer = 'ldap://server.com:3268';
            $domain = 'server.com';
            $ldapBase = 'DC=server,DC=com';

         $ldapConn = ldap_connect ($ldapServer);


            if ($ldapConn) {

                ldap_set_option ( $ldapConn, LDAP_OPT_PROTOCOL_VERSION, 3 );
                ldap_set_option ( $ldapConn, LDAP_OPT_REFERRALS, 0 );


                $ldapBind = ldap_bind ($ldapConn, "{$userId}@{$domain}", $password );

        }

Viewing all articles
Browse latest Browse all 7686

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>