rpcclient

Stefan Schmieta schmieta at rutcor.rutgers.edu
Thu Oct 8 17:49:35 GMT 1998


I'm having the same problem as Matthew, i.e. I can't get user info
with the NT User Manager. When I try it takes a while and then
display "RPC call failed". Here's what happens with rpcclient:

rutcor:~/samba/source> bin/rpcclient -S neumann
Added interface ip=128.6.70.40 bcast=128.6.70.255 nmask=255.255.255.0
Enter Password:
smb: \> lsaquery
lsaquery

LSA Query Info Policy
Domain Member     - Domain: RUTCOR-DOMAIN SID: S-1-5-21-95803528-180370111-114328357
Domain Controller - Domain: RUTCOR-DOMAIN SID: S-1-5-21-95803528-180370111-114328357
smb: \> enumusers -g -u
enumusers -g -u

SAM Enumerate Users
From: rutcor To: \\NEUMANN Domain: RUTCOR-DOMAIN SID: S-1-5-21-95803528-180370111-114328357
cli_pipe: return critical error. Error was code 0

smb: \>

Neumann is a running the latest alpha of Samba obtained via CVS an hour
ago (it's a Sun4 Sparc running NetBSD 1.3.2). It's set up as PDC for our
tiny network of NT workstations. Serving passwords and logon scripts works 
fine. Another thing that doesn't work is browsing Neumann. If I double
click on it in the net'hood I get "Access denied". Listing shares via
smbclient does work fine though.

I'd be happy to provide more detailed info on our configuration or debug
logs. Just let me know what you need. 

  Stefan 

On Fri, 9 Oct 1998, Luke Kenneth Casson Leighton wrote:

> evil_unix_box$ rpcclient -S janus -U [% / admin / user / whatever]
> Enter Password: xxxxx
> smb> lsaquery
> DOMAIN: JANUS_DOMAIN_MEMBER SID: S-1-5-21-xxxx-xxx-xxx
> DOMAIN: JANUS_DOMAIN_NAME  SID: S-1-5-21-xxxx-xxx-xxx
> smb> enumusers -g -u
> lots of user info
> smb> exit
> 
> On Thu, 8 Oct 1998, Matthew Geier wrote:
> 
> >  How does this work ?. I cant get any sense out of it..
> > janus:~/ftp/samba/source/bin> ./rpcclient \\\\janus\\
> > service: \\janus\
> > Can't find include file /usr/local/samba/lib/smb.UNKNOWN.conf
> > Can't find include file smb.UNKNOWN.conf
> > Can't find include file /usr/local/samba/lib/smb..conf
> > Can't find include file /usr/local/samba/lib/smb.%G.conf
> > Added interface ip=129.78.136.1 bcast=129.78.136.255 nmask=255.255.255.0
> > Enter Password:
> > error connecting to 255.255.255.255:139 (No route to host)
> > cli_establish_connection: failed to connect to JANUS<00> (0.0.0.0)
> > rpcclient_connect: connection failed
> > warning: connection could not be established to <20>
> > this version of smbclient may crash if you proceed
> > janus:~/ftp/samba/source/bin> 
> > 
> >  I was hoping to see if rpcclient could get a user list from the server
> > something that ive not been able to do with usermgr.exe even though
> > some people say it works...
> 
> i say it works.  if i'm a liar, send me a text printout of a netmon trace
> and i'll _fix_ it!
> 
> 



More information about the samba-ntdom mailing list