#include "stdafx.h"
#include "ctype.h"
#include "ldapauth_plus.h"
#include "ConfigureDialog.h"
#include ".\ldapauth_plus.h"
Go to the source code of this file.
Functions | |
void | plugError (LPCWSTR *errorStr, LPVOID rawData, DWORD eventID) |
pGina ldapAuth plugin | |
LONG | regLookup (WCHAR *lookee, WCHAR *value) |
bool | regSet (WCHAR *settee, WCHAR *value) |
bool | ldapDoBindTest (LPTSTR dn, LPTSTR Password, LPTSTR ldapServer, LDAP *gloLdapStruct) |
bool | ldapTestMap (LPTSTR Username, LPTSTR Password, WCHAR *ldapServer, WCHAR *ldpContext, LDAP *gloLdapStruct, WCHAR *dn) |
bool | ldapMapGo (LPTSTR Username, LPTSTR Password, LPTSTR ldapPrePend, LPTSTR ldapServer, LPTSTR ldapContext, LDAP *gloLdapStruct, WCHAR *dn) |
WCHAR * | getContext (WCHAR *DN) |
bool | ldapSearchForDN (LPTSTR Username, WCHAR *DN, WCHAR *ldpContext, LDAP *gloLdapStruct) |
bool | ldapTestMultiMap (LPTSTR Username, LPTSTR Password, WCHAR *ldapServer, WCHAR *ldpContext, LDAP *gloLdapStruct, WCHAR *dn) |
bool | ldapTestSearch (LPTSTR Username, LPTSTR Password, WCHAR *ldpContext, LDAP *gloLdapStruct, WCHAR *dn) |
DWORD | determineLdap (void) |
void | doLdapSearch (WCHAR ldapFilter[256]) |
doLdapSearch -- a standard search function for ldapauth | |
bool | ldapGroupCheck (WCHAR *username, WCHAR *group, LDAP *gloLdapStruct, WCHAR *ldpContext) |
bool | okToLogin (WCHAR *username, LDAP *gloLdapStruct, WCHAR *ldpContext) |
bool | createAsAdmin (WCHAR *username, LDAP *gloLdapStruct, WCHAR *ldpContext) |
PWCHAR * | ldapSearchAttr (LPTSTR Username, WCHAR *attr, LDAP *gloLdapStruct, WCHAR *ldpContext, bool ldpOverride) |
void | populateUserInfo (pGinaInfo *settingsInfo, LDAP *gloLdapStruct, WCHAR *ldpContext) |
void | setNDSReg (WCHAR *ndsTree, WCHAR *strNDSContext) |
void | confNDSClient (WCHAR *ndsTree, WCHAR *ldpContext, WCHAR *Username) |
BOOL | whoIsGroup (WCHAR *strAdminGroup, DWORD rid) |
void | ldapNegotiate (LDAP *ld) |
LDAPAUTH_API BOOL | IsRequired (void) |
LDAPAUTH_API void | ChangePluginSettings (void) |
LDAPAUTH_API void | LoginHook (pGinaInfo *settingsInfo) |
LDAPAUTH_API void | LogoutHook (pGinaInfo *settingsInfo) |
LDAPAUTH_API BOOL | ChangeUserPassword (LPTSTR Username, PWCHAR OldPassword, PWCHAR NewPassword) |
LDAPAUTH_API LPCTSTR | AboutPlugin (void) |
LDAPAUTH_API BOOL | UserLogin (LPTSTR Username, LPTSTR Password, pGinaInfo *settingsInfo) |
TCHAR * | regReadString (LPCTSTR location) |
BOOL | regWriteString (LPTSTR value, LPCTSTR location) |
BOOL | regWriteDword (DWORD value, LPCTSTR location) |
DWORD | regReadDword (LPCTSTR location) |
void | regDelValue (LPCTSTR location) |
Variables | |
Cldapauth_plusApp | theApp |
Definition in file ldapauth_plus.cpp.
|
Definition at line 1368 of file ldapauth_plus.cpp. References determineLdap(), LDAPAUTH_API, LDAPAUTHVERSION, MULTIMAP, SEARCH, and STRMAP. |
|
Definition at line 1098 of file ldapauth_plus.cpp. References LDAPAUTH_API. |
|
Definition at line 1161 of file ldapauth_plus.cpp. References determineLdap(), LDAPAUTH_API, ldapTestMap(), ldapTestMultiMap(), ldapTestSearch(), MULTIMAP, regLookup(), SEARCH, and STRMAP. |
|
Definition at line 978 of file ldapauth_plus.cpp. References setNDSReg(). Referenced by UserLogin(). |
|
Definition at line 628 of file ldapauth_plus.cpp. References ldapGroupCheck(), and regLookup(). Referenced by UserLogin(). |
|
Definition at line 456 of file ldapauth_plus.cpp. References regLookup(). Referenced by AboutPlugin(), ChangeUserPassword(), and UserLogin(). |
|
doLdapSearch -- a standard search function for ldapauth doLdapSearch is an attempt to build a standard search function into ldapauth to handle assorted searching needs. It will accept what is saught. Definition at line 469 of file ldapauth_plus.cpp. References getContext(), and regLookup(). |
|
Definition at line 247 of file ldapauth_plus.cpp. Referenced by doLdapSearch(), and ldapSearchForDN(). |
|
Definition at line 1085 of file ldapauth_plus.cpp. References LDAPAUTH_API, and regLookup(). |
|
Definition at line 171 of file ldapauth_plus.cpp. References regLookup(). Referenced by ldapMapGo(), and ldapTestMap(). |
|
Definition at line 544 of file ldapauth_plus.cpp. References ldapSearchAttr(), and regLookup(). Referenced by createAsAdmin(), and okToLogin(). |
|
Definition at line 225 of file ldapauth_plus.cpp. References ldapDoBindTest(). Referenced by ldapTestMultiMap(). |
|
Definition at line 1063 of file ldapauth_plus.cpp. References regReadDword(). |
|
Definition at line 675 of file ldapauth_plus.cpp. |
|
Definition at line 265 of file ldapauth_plus.cpp. References getContext(), and regLookup(). Referenced by ldapTestSearch(). |
|
Definition at line 199 of file ldapauth_plus.cpp. References ldapDoBindTest(), and regLookup(). Referenced by ChangeUserPassword(), and UserLogin(). |
|
Definition at line 357 of file ldapauth_plus.cpp. References ldapMapGo(), LDAPREGFAIL, plugError(), and regLookup(). Referenced by ChangeUserPassword(), and UserLogin(). |
|
Definition at line 423 of file ldapauth_plus.cpp. References ldapSearchForDN(), and regLookup(). Referenced by ChangeUserPassword(), and UserLogin(). |
|
Definition at line 1107 of file ldapauth_plus.cpp. References LDAPAUTH_API, and regLookup(). |
|
Definition at line 1134 of file ldapauth_plus.cpp. References LDAPAUTH_API, and regLookup(). |
|
Definition at line 596 of file ldapauth_plus.cpp. References ldapGroupCheck(), and regLookup(). Referenced by UserLogin(). |
|
pGina ldapAuth plugin pGina ldapAuth code - based upon skeleton code for pGina plugin development Copyright (C) 2003 Micah Cooper This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Email: coopermj@muohio.edu Snail Mail: Micah Cooper 212A Kreger Hall Miami University Oxford OH 45056 Definition at line 83 of file ldapauth_plus.cpp. Referenced by ldapTestMultiMap(). |
|
Definition at line 765 of file ldapauth_plus.cpp. References ldapSearchAttr(), pGinaInfo::mapPaths, regLookup(), pGinaInfo::userDescription, pGinaInfo::userFullName, and pGinaInfo::Username. Referenced by UserLogin(). |
|
Definition at line 1688 of file ldapauth_plus.cpp. Referenced by CConfigDialog::OnSave(), CConfigHooks::OnSave(), CConfigLDAP::OnSave(), CConfigPwd::OnSave(), CConfigUser::OnSave(), CConfigDialog::saveListsToReg(), CConfigHooks::saveListsToReg(), CConfigLDAP::saveListsToReg(), and CConfigUser::saveListsToReg(). |
|
Definition at line 110 of file ldapauth_plus.cpp. Referenced by ChangeUserPassword(), createAsAdmin(), determineLdap(), doLdapSearch(), IsRequired(), ldapDoBindTest(), ldapGroupCheck(), ldapSearchAttr(), ldapSearchForDN(), ldapTestMap(), ldapTestMultiMap(), ldapTestSearch(), LoginHook(), LogoutHook(), okToLogin(), populateUserInfo(), and UserLogin(). |
|
Definition at line 1665 of file ldapauth_plus.cpp. Referenced by CConfigLDAP::CConfigLDAP(), ldapNegotiate(), and UserLogin(). |
|
|
Definition at line 142 of file ldapauth_plus.cpp. |
|
Definition at line 1646 of file ldapauth_plus.cpp. Referenced by CConfigLDAP::OnSave(). |
|
Definition at line 1626 of file ldapauth_plus.cpp. Referenced by CConfigDialog::OnSave(), CConfigHooks::OnSave(), CConfigLDAP::OnSave(), CConfigPwd::OnSave(), CConfigUser::OnSave(), CConfigDialog::saveListsToReg(), CConfigHooks::saveListsToReg(), CConfigLDAP::saveListsToReg(), and CConfigUser::saveListsToReg(). |
|
Definition at line 949 of file ldapauth_plus.cpp. Referenced by confNDSClient(). |
|
Definition at line 1400 of file ldapauth_plus.cpp. References pGinaInfo::allowPassChange, confNDSClient(), createAsAdmin(), determineLdap(), DOMAIN_ALIAS_RID_ADMINS, DOMAIN_ALIAS_RID_USERS, pGinaInfo::errorString, pGinaInfo::isAdmin, LDAPAUTH_API, ldapTestMap(), ldapTestMultiMap(), ldapTestSearch(), MULTIMAP, okToLogin(), populateUserInfo(), regLookup(), regReadDword(), SEARCH, STRMAP, pGinaInfo::userGroups, and whoIsGroup(). |
|
Definition at line 1008 of file ldapauth_plus.cpp. Referenced by UserLogin(). |
|
Definition at line 1574 of file ldapauth_plus.cpp. |