[Samba] net rpc info throwing NT_STATUS_CONNECTION_REFUSED

Rowland Penny rpenny at samba.org
Fri Mar 24 11:16:59 UTC 2017


On Fri, 24 Mar 2017 16:28:49 +0530
VigneshDhanraj G via samba <samba at lists.samba.org> wrote:

> Is any update on this?
> 
> On Wed, Mar 22, 2017 at 8:53 PM, VigneshDhanraj G <
> vigneshdhanraj.g at gmail.com> wrote:
> 
> > Hi Team,
> >
> > When i am accessing folders through cifs it always saying Username
> > could not be found.
> >
> > In log i could see,
> >
> > [2017/03/22 10:03:50.184453,  0] ../source3/libsmb/cliconnect.
> > c:1918(cli_session_setup_spnego_send)
> >   Kinit for DHANRAJ$@DHAN.LOCAL to access
> > cifs/WIN-R2345ED.DHAN.LOCAL at DHAN.LOCAL failed: Preauthentication
> > failed
> >
> > When i am running below command, I am getting Connection_refused
> > error
> >
> > /usr/local/samba/bin/net rpc info -S DHAN.LOCAL --machine-pass
> > Could not connect to server DHAN.LOCAL
> > Connection failed: NT_STATUS_CONNECTION_REFUSED
> >

I take it that the DC is called 'WIN-R2345ED', so try it like this:

net rpc info -S WIN-R2345ED.DHAN.LOCAL -k --machine-pass

Rowland





More information about the samba mailing list