From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Komanek Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: C2 password remote change Date: Tue, 11 Feb 2003 08:54:22 +0100 (CET) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: References: <1044245988.11284.20.camel@stasis.home> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1044949967 11146 80.91.224.249 (11 Feb 2003 07:52:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 11 Feb 2003 07:52:47 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18iVDh-0002tb-00 for ; Tue, 11 Feb 2003 08:52:45 +0100 Original-Received: (qmail 21798 invoked by uid 5); 11 Feb 2003 07:54:46 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 21789 invoked by uid 49493); 11 Feb 2003 07:54:46 -0000 Original-Received: from xdavid@lib-eth.natur.cuni.cz by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-10.5/5.0):. Processed in 0.58651 secs); 11 Feb 2003 07:54:46 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 11 Feb 2003 07:54:45 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0HA4008W8WN8C6@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 11 Feb 2003 02:54:45 -0500 (EST) Original-Received: from lib-eth.natur.cuni.cz (lib-eth.natur.cuni.cz [195.113.56.250]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0HA400EG2WMN9A@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 11 Feb 2003 02:54:25 -0500 (EST) Original-Received: from lib-eth.natur.cuni.cz (lib-eth.natur.cuni.cz [195.113.56.250]) by lib-eth.natur.cuni.cz (a.b.c/a.b.c) with ESMTP id h1B7sN3p094042 for ; Tue, 11 Feb 2003 08:54:23 +0100 (MET) In-reply-to: Original-To: "Tru64-Unix-Managers \(E-mail\)" X-Envelope-From: xdavid@lib-eth.natur.cuni.cz Xref: main.gmane.org gmane.os.tru64.managers:3287 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3287 Dear all, I got a few replies to my questions concerning the posibility access OSF-C2 remotely to gain direct access from client machines (see original message bellow). Many thanks go to (in order of appearance in my mbox) Michael James Bradford Mehall, Michael Ann Majeske and Spider Broadman I now believe the general consensus is: * it is not possible to connect to OSF-C2 protected databse via a specific network protocol * prpasswdd is limited to the conections from localhost and its protocol is proprietary * simple solution is to deliver data for requested changes to the serer machine (i.e. NFS) and then run there scripts based on Expect and edauth to complete the task As an add-on Ifound that it is possible to manage some facilities of user's accounts through NIS cooperating with protected password records. In the case we already use various custom scripts and krb4 as an alternative authenticator (which we synchronize with OSF-C2) this is not suitable solution or me. Well, because I need real-time feedback and security to the user's request, I decided to write my own client/server application. Server (written in poor C-language) will wait for request to supply some data and to perform administrative tasks on user's acounts. Client will be a graphical front-end for this written in Java (JFC/Swing) to have single code for both Windows and Linux platforms. Communication between client and server is secured by SSL encrypted socket TCP communication. My first attempts to this seem promissing. Thank you very much for your opinions. Sincerely, David Komanek =============== Replies ====================================== Hi David, This can be done by running the edauth command via super and ssh. For example, you could write a script that took an encrypted password and used edauth to replace the current encrypt password (u_pwd). The script would then update the password change time (u_succhg). This script would be placed on the individual client hosts and should be owned by root and only executable by root. On the server side, you would have a script/program which allowed the input of a password and encrypted it. It would then run the client-based script via ssh. If the user running it is not root, then you would need "super" to call ssh. Hope this helps Michael Bradford TDC Services IT -------------------------------------------------------------- David, I have developed my own method for changing a c2 (or non-c2 for that matter) password on multiple UNIX servers. It involves two ksh scripts and an Expect script. The expect program requires that tcl and Expect packages are loaded on your control server and the scripts also expect a common NFS mounted filesystem across all servers. If you are interested in the scripts let me know and I'll send you a copy of everything. Also, the script works for 4.0x and 5.0. It has not been tested in 5.1a. Mike Mehall SAP Basis Team Northrop Grumman Corp. -------------------------------------------------------------- Hi David, In order to use the Enhanced Security (ES) interfaces, you'll need to be on a Tru64 UNIX machine. That can be managed by something like rsh "under the hood" of whatever application you develop, of course. You're really best off using 'expect'-like processing and the /usr/bin/passwd command rather than trying to roll your own interface here - especially since this protects you against possible changes in the interfaces. [A custom daemon, which you already said you'd prefer not to use, could make the sia_chg_passwd() call directly, of course.] Going 'below' the sia_chg_passwd(3) or passwd(1) interfaces is where you'd have the potential to get into trouble down the road. [/usr/sbin/prpasswdd uses a proprietary protocol from the putespwnam(3) interface, and it demands that the application 'talking' to it must be on the same machine as it is - with a special hack for TruCluster access. Trying to talk to it directly is not likely to get you what you want.] Hope this helps, even though it's not quite what you wanted to hear. [Ann Majeske and Spider Broadman] -------------------------------------------------------------- David, I went down the same road last year and didn't have the resources, or time, to write a Client/Server app. Also, I tried to write a program that called the C2 libraries myself and after much discussion with many of the Tru64 managers group members I decided that an Expect program that directly interacted with the passwd command was my best bet. Well, good luck and I am anxious to see a summary on this one! Mike Mehall SAP Basis Team Northrop Grumman Corp. =============== Original message ============================= > Dear admins, > > I am trying to simplify the user's account management (about 3500 users in > heterogenous network). One of the problems I have is to explore the > possibility of changing tru64unix C2-security password without the need of > interactive logging to the shell. My idea is not to use a web-based > application on the server side. I would like to implment this as a > standalone application (which will serve various functions for various > accounts on various machines :-) Is it possible ? I think it should be > done using prpasswd daemon but not sure how to use it, because I found no > prorammer's API reference for this. > > I am able to manipulate with prpasswd entries locally, so the only thing I > need is the way to communicate with C2 database remotely without the need > of writing my own special daemon listening on a privileged port. > > Thanks in advance, > > David Komanek > Charles University > Faculty of Science > CZ, Prague > komanek@natur.cuni.cz > > --