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

pgina_headers.h

Go to the documentation of this file.
00001 /*
00002 pGina ldapAuth code - based upon skeleton code for pGina plugin development
00003 Copyright (C) 2002 Micah Cooper
00004 
00005 This program is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU General Public License
00007 as published by the Free Software Foundation; either version 2
00008 of the License, or (at your option) any later version.
00009 
00010 This program is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 GNU General Public License for more details.
00014 
00015 You should have received a copy of the GNU General Public License
00016 along with this program; if not, write to the Free Software
00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018 
00019 Email: coopermj@muohio.edu
00020 Snail Mail:
00021         Micah Cooper
00022         212A Kreger Hall
00023         Miami University
00024         Oxford OH  45056
00025 */
00026 
00027 // Define macro's for exporting methods
00028 #define LDAPAUTH_API extern "C" __declspec(dllexport)
00029 
00030 // Define the pGinaInfo Structure
00031 typedef struct pGinaInfo {
00032                 LPTSTR pathMSGina;
00033                 LPTSTR pathPlugin;
00034                 LPTSTR pathProfile;
00035                 LPTSTR mapPaths;
00036                 LPTSTR Username;
00037                 LPTSTR Password;
00038                 LPTSTR homeDir;
00039                 BOOL isAdmin;
00040                 BOOL disabled;
00041                 int authType;
00042                 HANDLE hUser;
00043                 LPTSTR userGroups;
00044                 LPTSTR userDescription;
00045                 LPTSTR userFullName;
00046                 BOOL allowPassChange;
00047                 LPTSTR errorString;
00048                 LPTSTR defaultDomain;
00049                 BOOL Reserved3;
00050                 BOOL Reserved4;
00051 } pGinaInfo ;
00052 
00053 // Export these methods...
00054 LDAPAUTH_API BOOL UserLogin(LPTSTR, LPTSTR,pGinaInfo *);                        
00055 LDAPAUTH_API BOOL ChangeUserPassword(LPTSTR,LPTSTR,LPTSTR);
00056 LDAPAUTH_API LPCTSTR AboutPlugin(void);
00057 LDAPAUTH_API void ChangePluginSettings(void);
00058 LDAPAUTH_API void LoginHook(pGinaInfo *);
00059 LDAPAUTH_API void LogoutHook(pGinaInfo *);
00060 LDAPAUTH_API BOOL IsRequired(void);

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