Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

136 lines
2.7 KiB

  1. typedef LDAP * PLDAP;
  2. typedef PLDAP HLDAP;
  3. DWORD
  4. LdapOpen(
  5. WCHAR *domainName,
  6. int portno,
  7. HLDAP * phLdapHandle
  8. );
  9. DWORD
  10. LdapBind(
  11. HLDAP hLdapHandle
  12. );
  13. DWORD
  14. LdapSearchHelper(
  15. HLDAP hLdapHandle,
  16. WCHAR *base,
  17. int scope,
  18. WCHAR *filter,
  19. WCHAR *attrs[],
  20. int attrsonly,
  21. struct l_timeval *timeout,
  22. LDAPMessage **res
  23. );
  24. DWORD
  25. LdapSearchS(
  26. HLDAP hLdapHandle,
  27. WCHAR *base,
  28. int scope,
  29. WCHAR *filter,
  30. WCHAR *attrs[],
  31. int attrsonly,
  32. LDAPMessage **res
  33. );
  34. DWORD
  35. LdapSearchST(
  36. HLDAP hLdapHandle,
  37. WCHAR *base,
  38. int scope,
  39. WCHAR *filter,
  40. WCHAR *attrs[],
  41. int attrsonly,
  42. struct l_timeval *timeout,
  43. LDAPMessage **res
  44. );
  45. DWORD
  46. CheckAndSetExtendedError(
  47. HLDAP hLdapHandle,
  48. int ldaperr
  49. );
  50. DWORD
  51. LdapFirstEntry(
  52. HLDAP hLdapHandle,
  53. LDAPMessage *res,
  54. LDAPMessage **pfirst
  55. );
  56. DWORD
  57. LdapGetValues(
  58. HLDAP hLdapHandle,
  59. LDAPMessage *entry,
  60. WCHAR *attr,
  61. WCHAR ***pvalues,
  62. int *pcount
  63. );
  64. DWORD
  65. LdapGetValuesLen(
  66. HLDAP hLdapHandle,
  67. LDAPMessage *entry,
  68. WCHAR *attr,
  69. struct berval ***pvalues,
  70. int *pcount
  71. );
  72. DWORD
  73. LdapNextEntry(
  74. HLDAP hLdapHandle,
  75. LDAPMessage *entry,
  76. LDAPMessage **pnext
  77. );
  78. int
  79. LdapCountEntries(
  80. HLDAP hLdapHandle,
  81. LDAPMessage *res
  82. );
  83. void
  84. LdapMsgFree(
  85. LDAPMessage *res
  86. );
  87. void LdapValueFree(
  88. WCHAR **vals
  89. );
  90. void LdapValueFreeLen(
  91. struct berval **vals
  92. );
  93. DWORD
  94. LdapAddS(
  95. HLDAP hLdapHandle,
  96. WCHAR *dn,
  97. LDAPModW *attrs[]
  98. );
  99. DWORD
  100. LdapModifyS(
  101. HLDAP hLdapHandle,
  102. WCHAR *dn,
  103. LDAPModW *mods[]
  104. );
  105. DWORD
  106. LdapDeleteS(
  107. HLDAP hLdapHandle,
  108. WCHAR *dn
  109. );
  110. DWORD
  111. LdapRename(
  112. HLDAP hLdapHandle,
  113. WCHAR * oldDn,
  114. WCHAR * newDn
  115. );