From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,2aac07dc91d4f4db X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1993-02-01 20:02:47 PST Newsgroups: comp.os.linux.announce Path: sparky!uunet!think.com!rpi!batcomputer!sanjuan!pmacdona From: sanjuan!pmacdona@sol.UVic.CA (Peter MacDonald) Subject: Re: ANNOUNCE: xdm source with shadow support + ftpd ditto Message-ID: <1993Feb2.040247.8361@tc.cornell.edu> Originator: mdw@db.TC.Cornell.EDU Keywords: xdm X11 source Sender: news@tc.cornell.edu Nntp-Posting-Host: db.tc.cornell.edu Organization: University of Victoria, Victoria B.C. CANADA Date: Tue, 2 Feb 1993 04:02:47 GMT In article <1993Feb1.221155.29236@tc.cornell.edu> Mike Jagdis writes: >Uploaded to tsx-11.mit.edu, sunsite.unc.edu and nic.funet.fi > > xdm.taz - source for xdm with shadow support > ftpd.c.Z - replacement for ftpd.c in ftpd sources (net-src 0.2) > has shadow support. > >Both these support the full shadow 3.2.2 features, including the use of >@... to specify an alternative verification program (untested) - see >the shadow documentation and/or source code for the gory details. > > The original xdm I had had some shadow support in there already. The >changes I made for shadow 3.2.2 are ifdef'ed linux just to be awkward! > > The ftpd.c code has the shadow changes ifdef'ed SHADOWPWD just be >even more awkward! > > To compile either of these you need the shadow 3.2.2 sources. Specifically >the pwauth.h file must be locatable as , you need to link >against the libshadow.a library and you also need to link in verify.o (which >I added to libshadow.a on my system). > > The changes are more or less copied straight out of login.c. They seem >to work ok on my system but then I didn't set out to make an elegant >solution for the masses originally :-) > > Mike > >-- >Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu I should have spoke up sooner. The shadow password in SLS does not require modifying source code to be used. Instead you just compile with -DSHADOW_PWD and link -lshadow. An interface with getpw* is included. This will get a password from /etc/shadow and overwrite the value in the pwd struct, only if /etc/shadow has a password for the user. Else, it uses the /etc/passwd one. If you like, you can get the source from the SLS s1 disk. Sorry Mike. Peter -- Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu