There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Delphi problem with WinLDAP


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
alan_warren's Avatar
Junior Member with 7 posts.
 
Join Date: Aug 2005
Experience: Advanced
26-Aug-2005, 01:08 AM #1
Delphi problem with WinLDAP
I am attempting to connect to the active directory of a domain controller. Upon calling the WinLDAP method ldap_bind_s with the credentials of the domain administrator and using LDAP_AUTH_NTLM as the authorisation mode, I get the error "invalid credentials".

Microsoft's help on ldap_bind_s states that its third parameter can be a pointer to the SEC_WINNT_AUTH_IDENTITY structure, which allows greater control in the way the client binds to the active directory. Unfortunately I cannot find any reference on the web to using the SEC_WINNT_AUTH_IDENTITY structure in Delphi.

Does anyone know how to use it with Delphi, or whether it is even available to Delphi developers?

Any help will be much appreciated. Thanks.
GCDude's Avatar
Senior Member with 400 posts.
 
Join Date: Apr 2005
Location: Brighton, UK
Experience: Possibly Competent
26-Aug-2005, 10:08 AM #2
heres the structure,

For Windows NT, Windows 2000, Windows 9x, and Apple Macintosh:

typedef struct _SEC_WINNT_AUTH_IDENTITY
{
unsigned short __RPC_FAR *User;
unsigned long UserLength;
unsigned short __RPC_FAR *Domain;
unsigned long DomainLength;
unsigned short __RPC_FAR *Password;
unsigned long PasswordLength;
unsigned long Flags;
} SEC_WINNT_AUTH_IDENTITY, *PSEC_WINNT_AUTH_IDENTITY;

but im a VC++ developer with no idea of Delphi
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:45 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.