Main Page | Class List | File List | Class Members | File Members

ldapauth_plus.cpp File Reference

Config panel for password strength settings. More...

#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


Detailed Description

Config panel for password strength settings.

Definition in file ldapauth_plus.cpp.


Function Documentation

LDAPAUTH_API LPCTSTR AboutPlugin void   ) 
 

Definition at line 1368 of file ldapauth_plus.cpp.

References determineLdap(), LDAPAUTH_API, LDAPAUTHVERSION, MULTIMAP, SEARCH, and STRMAP.

LDAPAUTH_API void ChangePluginSettings void   ) 
 

Definition at line 1098 of file ldapauth_plus.cpp.

References LDAPAUTH_API.

LDAPAUTH_API BOOL ChangeUserPassword LPTSTR  Username,
PWCHAR  OldPassword,
PWCHAR  NewPassword
 

Definition at line 1161 of file ldapauth_plus.cpp.

References determineLdap(), LDAPAUTH_API, ldapTestMap(), ldapTestMultiMap(), ldapTestSearch(), MULTIMAP, regLookup(), SEARCH, and STRMAP.

void confNDSClient WCHAR *  ndsTree,
WCHAR *  ldpContext,
WCHAR *  Username
 

Definition at line 978 of file ldapauth_plus.cpp.

References setNDSReg().

Referenced by UserLogin().

bool createAsAdmin WCHAR *  username,
LDAP *  gloLdapStruct,
WCHAR *  ldpContext
 

Definition at line 628 of file ldapauth_plus.cpp.

References ldapGroupCheck(), and regLookup().

Referenced by UserLogin().

DWORD determineLdap void   ) 
 

Definition at line 456 of file ldapauth_plus.cpp.

References regLookup().

Referenced by AboutPlugin(), ChangeUserPassword(), and UserLogin().

void doLdapSearch WCHAR  ldapFilter[256]  ) 
 

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().

WCHAR* getContext WCHAR *  DN  ) 
 

Definition at line 247 of file ldapauth_plus.cpp.

Referenced by doLdapSearch(), and ldapSearchForDN().

LDAPAUTH_API BOOL IsRequired void   ) 
 

Definition at line 1085 of file ldapauth_plus.cpp.

References LDAPAUTH_API, and regLookup().

bool ldapDoBindTest LPTSTR  dn,
LPTSTR  Password,
LPTSTR  ldapServer,
LDAP *  gloLdapStruct
 

Definition at line 171 of file ldapauth_plus.cpp.

References regLookup().

Referenced by ldapMapGo(), and ldapTestMap().

bool ldapGroupCheck WCHAR *  username,
WCHAR *  group,
LDAP *  gloLdapStruct,
WCHAR *  ldpContext
 

Definition at line 544 of file ldapauth_plus.cpp.

References ldapSearchAttr(), and regLookup().

Referenced by createAsAdmin(), and okToLogin().

bool ldapMapGo LPTSTR  Username,
LPTSTR  Password,
LPTSTR  ldapPrePend,
LPTSTR  ldapServer,
LPTSTR  ldapContext,
LDAP *  gloLdapStruct,
WCHAR *  dn
 

Definition at line 225 of file ldapauth_plus.cpp.

References ldapDoBindTest().

Referenced by ldapTestMultiMap().

void ldapNegotiate LDAP *  ld  ) 
 

Definition at line 1063 of file ldapauth_plus.cpp.

References regReadDword().

PWCHAR* ldapSearchAttr LPTSTR  Username,
WCHAR *  attr,
LDAP *  gloLdapStruct,
WCHAR *  ldpContext,
bool  ldpOverride
 

Definition at line 675 of file ldapauth_plus.cpp.

bool ldapSearchForDN LPTSTR  Username,
WCHAR *  DN,
WCHAR *  ldpContext,
LDAP *  gloLdapStruct
 

Definition at line 265 of file ldapauth_plus.cpp.

References getContext(), and regLookup().

Referenced by ldapTestSearch().

bool ldapTestMap LPTSTR  Username,
LPTSTR  Password,
WCHAR *  ldapServer,
WCHAR *  ldpContext,
LDAP *  gloLdapStruct,
WCHAR *  dn
 

Definition at line 199 of file ldapauth_plus.cpp.

References ldapDoBindTest(), and regLookup().

Referenced by ChangeUserPassword(), and UserLogin().

bool ldapTestMultiMap LPTSTR  Username,
LPTSTR  Password,
WCHAR *  ldapServer,
WCHAR *  ldpContext,
LDAP *  gloLdapStruct,
WCHAR *  dn
 

Definition at line 357 of file ldapauth_plus.cpp.

References ldapMapGo(), LDAPREGFAIL, plugError(), and regLookup().

Referenced by ChangeUserPassword(), and UserLogin().

bool ldapTestSearch LPTSTR  Username,
LPTSTR  Password,
WCHAR *  ldpContext,
LDAP *  gloLdapStruct,
WCHAR *  dn
 

Definition at line 423 of file ldapauth_plus.cpp.

References ldapSearchForDN(), and regLookup().

Referenced by ChangeUserPassword(), and UserLogin().

LDAPAUTH_API void LoginHook pGinaInfo settingsInfo  ) 
 

Definition at line 1107 of file ldapauth_plus.cpp.

References LDAPAUTH_API, and regLookup().

LDAPAUTH_API void LogoutHook pGinaInfo settingsInfo  ) 
 

Definition at line 1134 of file ldapauth_plus.cpp.

References LDAPAUTH_API, and regLookup().

bool okToLogin WCHAR *  username,
LDAP *  gloLdapStruct,
WCHAR *  ldpContext
 

Definition at line 596 of file ldapauth_plus.cpp.

References ldapGroupCheck(), and regLookup().

Referenced by UserLogin().

void plugError LPCWSTR *  errorStr,
LPVOID  rawData,
DWORD  eventID
 

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().

void populateUserInfo pGinaInfo settingsInfo,
LDAP *  gloLdapStruct,
WCHAR *  ldpContext
 

Definition at line 765 of file ldapauth_plus.cpp.

References ldapSearchAttr(), pGinaInfo::mapPaths, regLookup(), pGinaInfo::userDescription, pGinaInfo::userFullName, and pGinaInfo::Username.

Referenced by UserLogin().

void regDelValue LPCTSTR  location  ) 
 

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().

LONG regLookup WCHAR *  lookee,
WCHAR *  value
 

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().

DWORD regReadDword LPCTSTR  location  ) 
 

Definition at line 1665 of file ldapauth_plus.cpp.

Referenced by CConfigLDAP::CConfigLDAP(), ldapNegotiate(), and UserLogin().

TCHAR* regReadString LPCTSTR  location  ) 
 

Definition at line 1586 of file ldapauth_plus.cpp.

Referenced by CConfigDialog::CConfigDialog(), CConfigLDAP::CConfigLDAP(), CConfigPwd::CConfigPwd(), CConfigDialog::loadListsFromReg(), CConfigHooks::loadListsFromReg(), CConfigLDAP::loadListsFromReg(), CConfigUser::loadListsFromReg(), CConfigLDAP::OnInitDialog(), CConfigHooks::OnSave(), CConfigUser::OnSave(), CConfigDialog::saveListsToReg(), CConfigHooks::saveListsToReg(), CConfigLDAP::saveListsToReg(), and CConfigUser::saveListsToReg().

bool regSet WCHAR *  settee,
WCHAR *  value
 

Definition at line 142 of file ldapauth_plus.cpp.

BOOL regWriteDword DWORD  value,
LPCTSTR  location
 

Definition at line 1646 of file ldapauth_plus.cpp.

Referenced by CConfigLDAP::OnSave().

BOOL regWriteString LPTSTR  value,
LPCTSTR  location
 

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().

void setNDSReg WCHAR *  ndsTree,
WCHAR *  strNDSContext
 

Definition at line 949 of file ldapauth_plus.cpp.

Referenced by confNDSClient().

LDAPAUTH_API BOOL UserLogin LPTSTR  Username,
LPTSTR  Password,
pGinaInfo settingsInfo
 

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().

BOOL whoIsGroup WCHAR *  strAdminGroup,
DWORD  rid
 

Definition at line 1008 of file ldapauth_plus.cpp.

Referenced by UserLogin().


Variable Documentation

Cldapauth_plusApp theApp
 

Definition at line 1574 of file ldapauth_plus.cpp.


Generated on Fri Feb 20 12:03:44 2004 for ldapauth plugin for pGina by doxygen 1.3.5