windows-nt/Source/XPSP1/NT/ds/security/ntmarta/newsrc/ldapsp.h
2020-09-26 16:20:57 +08:00

95 lines
1.7 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//+---------------------------------------------------------------------------
//
// Microsoft Windows NT Security
// Copyright (C) Microsoft Corporation, 1997 - 1998
//
// File: ldapsp.h
//
// Contents: LDAP Scheme Provider definitions
//
// History: 28-Jul-97 kirtd Created
//
//----------------------------------------------------------------------------
#if !defined(__LDAPSP_H__)
#define __LDAPSP_H__
#include <windows.h>
#include <wininet.h>
#include <winldap.h>
#include <dsgetdc.h>
#include <stdlib.h>
#define LDAP_SCHEME_U L"ldap://"
#define LDAP_SCHEME_UC L"LDAP://"
//
// LDAP Scheme Provider Support API
//
typedef struct _LDAP_URL_COMPONENTS {
LPWSTR pwszHost;
ULONG Port;
LPWSTR pwszDN;
ULONG cAttr;
LPWSTR* apwszAttr;
ULONG Scope;
LPWSTR pwszFilter;
} LDAP_URL_COMPONENTS, *PLDAP_URL_COMPONENTS;
BOOL
LdapCrackUrl (
LPCWSTR pwszUrl,
PLDAP_URL_COMPONENTS pLdapUrlComponents
);
BOOL
LdapParseCrackedHost (
LPWSTR pwszHost,
PLDAP_URL_COMPONENTS pLdapUrlComponents
);
BOOL
LdapParseCrackedDN (
LPWSTR pwszDN,
PLDAP_URL_COMPONENTS pLdapUrlComponents
);
BOOL
LdapParseCrackedAttributeList (
LPWSTR pwszAttrList,
PLDAP_URL_COMPONENTS pLdapUrlComponents
);
BOOL
LdapParseCrackedScopeAndFilter (
LPWSTR pwszScope,
LPWSTR pwszFilter,
PLDAP_URL_COMPONENTS pLdapUrlComponents
);
VOID
LdapFreeUrlComponents (
PLDAP_URL_COMPONENTS pLdapUrlComponents
);
BOOL
LdapGetBindings (
LPWSTR pwszHost,
ULONG Port,
DWORD dwRetrievalFlags,
DWORD dwTimeout,
LDAP** ppld
);
VOID
LdapFreeBindings (
LDAP* pld
);
BOOL
LdapBindWithOptionalRediscover (LDAP* pld, LPWSTR pwszHost);
#endif