gina

所属分类:Windows编程
开发工具:Visual C++
文件大小:186KB
下载次数:45
上传日期:2009-04-08 13:40:24
上 传 者sillycat
说明:  Windows登录Gina的Dll库实现
(Windows log Gina implementation of the Dll Library)

文件列表:
andy.bmp (2102, 1997-04-13)
ChangeLog (221, 1997-04-28)
COPYING (18063, 1997-04-13)
ftpcheck.c (3867, 1997-04-15)
gina.001 (4454, 1997-04-28)
gina.aps (63912, 2009-04-08)
gina.def (339, 1997-04-13)
gina.dsp (4556, 2004-12-31)
gina.dsw (533, 2004-12-31)
gina.mak (5165, 1997-04-28)
gina.ncb (50176, 2005-01-04)
gina.opt (53760, 2009-04-08)
gina.plg (4556, 2009-04-08)
gina.rc (5359, 2009-04-08)
ginastub.c (19066, 2009-04-08)
HTCSPSID.dll (286720, 2005-01-05)
HTCSPSID.h (3114, 2004-12-16)
HTCSPSID.lib (4400, 2005-01-04)
HTError.h (3538, 2004-12-01)
INSTALLATION (2876, 1997-04-28)
me.bmp (2102, 1997-04-13)
mygina.h (3445, 1997-04-28)
realgina.h (2082, 1997-04-13)
resource.h (2751, 2004-12-31)
sydney.bmp (21742, 1997-04-13)
VERSION (5, 1997-04-28)

Doug's UNIX integration GINA replacement version 1.01 ----------------------------------------------------- This code is designed to make integrating NT domains into large UNIX environments much less painful. It automates the creation of NT logons by first validating them against UNIX logons. It does this by simply checking that username/password combo given to an NT box is valid on a UNIX box (via the FTP protocol). If the user is valid the program will create a new NT logon with the same username and password. This means that you can stop worrying about trying to synch up the UNIX password list with the NT one and as a bonus it means that SAMBA mounts of users home directories works transparently without them having to type in their passwords every time. The usual NT welcome dialog has been replaced with a dialog that lets your users either "register" their UNIX account details with the NT domain or logon to the NT domain. First time users "register" their UNIX account details then logon to the NT domain with those same details. If a UNIX user changes his/her password then they simply re-register their UNIX account details with the NT domain, the old NT account details are deleted and the new account created. I also got sick of the Ctrl-Alt-Del throwback and added a "logon" button. Drawbacks --------- 1. By using this GINA replacement weaken your NT security so that it only becomes as secure as your UNIX boxes. 2. You have to store your NT Administrator username and password as #defines in the "mygina.h" file. This is not a brilliant idea in terms of security. Anyone with any better ideas ? 3. This is the first ever Windows program I've ever coded I couldn't figure out some of the finer points of passing strings to dialogs so the error reporting is minimal. Tips are always appreciated ;^) 4. I wanted to code a version for POP and NIS but ran out of time. I'd still like to do these. The FTP code was snarfed off the net (thanks to Alex Kunadze for posting it), however it doesn't seem to gracefully time out if your FTP server is down. 5. You sometimes have to wait a couple of seconds for TCP/IP to initialise after a boot, so don't worry if your initial logon attempt complains that you aren't a valid UNIX user. Bugs ---- There is still a MAJOR bug I have been unable to resolve. Users can register as often as they like, however once another user has logged on and off the register button fails to create new accounts. The workaround is to get another user to reboot the machine... very ugly! For those that might be able to help me fix this... the problem is that both the NetUserDel and NetUserAdd routines are returning NERR_NoNetworkResource and I have no idea why... any help would be much appreciated. Acknowledgments --------------- Many thanks to Andrew Winter (andy@arch.usyd.edu.au) for his help and advice while developing this. Also thanks to Alex Kunadze (alexk@sbk.trigem.co.kr) for posting his FTP code and many, many thanks to Gary Desrosiers (desrosi@pcnet.com) for his inspirational gina replacement from http://www.pcnet.com/~desrosi. -- Doug Scoular "The big print giveth and the Systems Manager small print taketh away" E-mail: doug@arch.usyd.EDU.AU Tel: +61 2 9351 48*** WWW: http://www.arch.usyd.EDU.AU/~doug Fax: +61 2 9351 3031 Postal: Key Centre of Design Computing Univ. of Sydney, Rm292, Wilkinson Blding, 148 City Road Sydney NSW 2006, Australia

近期下载者

相关文件


收藏者