Re: connecting with LDAP bind?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Harpstein (mharp_at_seapine.com)
Date: 04/22/04


Date: Thu, 22 Apr 2004 14:42:50 -0400

I have my own client, but I'm using the OpenLDAP (www.openldap.org) C
library for the ldap interface.

I don't believe that I'm hitting the rootDSE, but maybe I need clarification
on what I'm "hitting".

I create a user in my AD of "Fred Moot" with a username="fred",
password="moot"

then I do ldap_init to my AD server, then call

unsigned long ul = ldap_bind_s( pldap, "fred", "", LDAP_AUTH_SIMPLE );

Shouldn't this fail since fred's password is not blank? And I am logging in
as Fred Moot with this call correct, not just connecting to the AD server to
browse it right?

my real setup is that I'm running a Win2k3 server as a VPC (Microsoft
VirtualPC) on my own WinXP box, and my WinXP box is logged into a company
domain while my VPC Win2k3 box is running a dummy AD on a dummy domain as
it's own domain controller. And there is no user on the dummy VPC domain
that matches my login acct to the company domain. So, I'm not clear on how
it could be using my company domain login to login to my dummy domain on the
VPC.

I think I'm doing something wrong, or misunderstanding what I'm doing.

Thanks,

harpstein

"Stefan Buchman" <stefan2002b@yahoo.com> wrote in message
news:74da6566.0404211401.4218dad@posting.google.com...
> What LDAP client are you using. It's possible that it's using SSPI to
> authenticate you to AD since no password was entered or you could just
> be hitting the rootDSE which allows anonymous connections.
>
> - Stefan
>
> "Harpstein" <mharp@seapine.com> wrote in message
news:<#n7OJa8JEHA.3728@TK2MSFTNGP12.phx.gbl>...
> > I have AD setup on a Win2k3 system. It's all working and I can browse
the
> > data from a LDAP client.
> >
> > However, when I go to authenticate myself to the server, it works if I
leave
> > the password blank.
> >
> > I can send in the correct password, like "fred" and it works.
> >
> > I can send in an empty password and it works.
> >
> > It only fails if I send in a non-empty password that doesn't match the
> > actual password on the user record in AD.
> >
> >
> > Is there some sort of setting causing this? I'm new to AD and just
really
> > want to try it out against my LDAP client but I don't see why binding
would
> > work when I give it an empty password. Isn't this a big security hole?
> >
> >
> > Any help would be much appreciated.
> >
> > Thanks,
> >
> > harpstein



Relevant Pages

  • SUMMARY: How to authenticate a RHEL client to SunOne 5.2 Directory Server anybody done this???
    ... I got it working by running authconfig on the Linux client and selecting ... LDAP for the authentication. ... Is there anything on the LDAP server I should check?? ... # SSL enabled. ...
    (SunManagers)
  • Re: TLS enabled LDAP, clients fail to connect
    ... Is the server cert trusted on the client? ... openldap-sasl-client-2.4.23 Open source LDAP client implementation ... setup a similar SSL enabled LDAP server for a client recently. ...
    (freebsd-questions)
  • TLS enabled LDAP, clients fail to connect
    ... I am attempting to setup SSL/TLS support on my openLDAP 2.4 server on FreeBSD. ... openldap-sasl-client-2.4.23 Open source LDAP client implementation ... setup a similar SSL enabled LDAP server for a client recently. ...
    (freebsd-questions)
  • Re: Cross Realm Administration?
    ... Solaris_10 ldap Client in a SAP environment which we seem to have ... We used the adjoin.sh provided by SUN/Oracle to establish a Kerberos ... Client Conenction. ... I have even merged a few userid entries to the keytab. ...
    (comp.protocols.kerberos)
  • Re: Directory Server LDAP/LDIF import - working yet not working???
    ... >> changes the ldap schema AND changes some of you existing ldap objects, ... The default install of DS 5.2 is plain jane LDAP server. ... >> and all your client machines, and set it to something reasonable. ... >> impossible to use the native Solaris 9 ldap client without it set) ...
    (comp.unix.solaris)