From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078712011620.tru64-unix-managers.marc@archive.invalid> From: Simon Greaves Date: Fri, 12 Jun 1998 02:50:33 +0000 To: tru64-unix-managers Subject: SUMMARY: how do I get a list of pathworks users? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078712011620 Well not much luck on this one, I guess this means not many people are running pathworks (can't say I blame them..) or maybe I'm the only person who wants to know who's registered. Thanks to: Charles Vachon Doyle, Danny Mr ITT/FSC Kris Chandrasekhar who responded. Most appropriate of these was the last one, Kris claims 'net user' works for him with a small set of users. So, not really much joy there. I looked into the Win32 documentation and found the 'NetUserEnum' call which looked exactly what I wanted, hacked a bit of C on the DU box and after an bucketload of twiddling with source got something that would compile and run. End result was much the same as using the 'net user' command - ie a core dump. What's even more frustrating is that there are massive differences in coding between ASU 3.51 and ASU 4.0 (maybe reflects differences in NT). Looks like my options are: 1) Raise this with Digital - Should have support for this. 2) Write something on NT to do it I don't know which will be quicker. Option 2 is probably more appealing as I think NT is likely to be around longer than pathworks and is probably a lot more efficient (and the calls are documented :-) My original question: > We have a couple of alphas running Open VMS (GACK) and a couple running > DU4.0[bd] and loads of client PC's running Win95. The alphas all run ASE > and clients run pathworks. > > One of the alphas is configured as a PDC and the VMS hosts are using > external authentication via it. > > What I'd like to know is how do I get a list of the users registered in > the domain. The 'net users' command should do it (I think), but it > doesn't, instead I get: > > % net users > Abort (core dumped) > % net version > Advanced Server V4.0 ECO1 for DIGITAL UNIX > > Hmmm... not very useful. > > Issuing the same command on the PDC I get a list of users, but it is > incomplete, iot terminates with the error message: > > NET3513: More data is available than can be returned by > Advanced Server for UNIX Systems. > # net version > Advanced Server for UNIX Systems Version 3.51 > UNIX System Server > > Using the win95 tool doesn't produce an error, and also lists the users > real name alongside their username. > > Ideally I want to be able to get a list of all the usernames the PDC > knows about and their real names too so I can use this in scripts on the > DU hosts. I thought about hacking around with samba source, but thought > I'd ask here first in case I was missing something blindingly obvious. and the responses: From: Charles Vachon Subject: Re: how do I get a list of pathworks users? Hello, With Pathworks v6.1, there is a command named mapuname, residing in /usr/net/servers/lanman/bin, which lists/modifies the mappings between LAN manager accounts and UNIX usernames. If it exists in your version of Pathworks, maybe it could help you getting what you are looking for. Also, there is a man page for mapuname. Hope this help. Good luck. > not what I wanted to do - I know about uname, but it doesn't help. -- Charles Vachon -- Administrateur de syst=E8me Fonds de la R=E9forme Cadastrale du Qu=E9bec Minist=E8re des Ressources Naturelles du Qu=E9bec cvachon@mrn.gouv.qc.ca -- 418-627-6355 ext 2760 -------------------- From: "Doyle, Danny Mr ITT/FSC" Subject: Pathworks users Simon: Despite the Pathworks documentation, the seamless integration of user accounts is via the Windows NT User Manager. This is available in the Advanced Server Tools (ASTOOLS) software set. NT 4.0 has this available also, possibly with different version numbers. The UNIX side has a primitive VT100 executable, PWADMIN. It shows essentially the same information, but is difficult to navigate. It also is powerless to effect changes to accounts. Good luck, Danny > Don't think this helps for extracting stuff to scripts. -------------------- From: Kris Chandrasekhar Subject: RE: how do I get a list of pathworks users? Hi Simon I am not a Pathworks (ASDU) expert, but I have done on this in two environments, one with Digital UNIX V4.0D patch kit 1 ASDU ECO 1; Second with Digital UNIX V4.0D no patch kit, ASDU from the Associated Products CD. At least from the root account, net users works. (I didn't have occasion to do this from non-root accounts). Mind you, the number of user accounts on the two systems is not large, but I don't believe that should make a difference, but you never know. > seems to. You can also install the Win95 or Win-NT Client Server Tools and then run User Manager for Domain to see a list of users in that domain. The Server Manager is also installed when you set up Win Client Server Tools. > Yes, I already had this and it works. I just wanted to extract a list > of users dynamically so I could use it in scripts etc. You also said something about Samba; I think you cannot have Samba and Advanced Server for Digital UNIX running together on the same system at the same time, because I think they use the same ports. > should have been more explicit - I meant hacking on samba code to make > an smb client that could extract the usernames. Good luck. Kris. =================================== ============================================ These are my opinions only, and Digital Equipment Corporation bears no responsibility for them =================================== ============================================ Simon -- Simon Greaves voice: (+679) 212114 Computer Centre fax: (+679) 304089 The University of the South Pacific email: greaves_s@usp.ac.fj Suva, Fiji