net ads dns and self tests ...

Andrew Bartlett abartlet at samba.org
Thu May 5 19:06:12 UTC 2016


On Mon, 2016-04-25 at 08:54 -0700, Richard Sharpe wrote:
> On Mon, Apr 25, 2016 at 8:51 AM, Richard Sharpe
> <realrichardsharpe at gmail.com> wrote:
> > On Mon, Apr 25, 2016 at 6:55 AM, Richard Sharpe
> > <realrichardsharpe at gmail.com> wrote:
> > > Hi folks,
> > > 
> > > I have been trying to write a self test (testprogs/blackbox) to
> > > test
> > > the net ads dns commands.
> > > 
> > > It seemed like I needed to do the following:
> > > 
> > > 1. Create privileged (an admin) and an unprivileged accounts.
> > > 2. Run the commands from with both sets of creds and test that
> > > the
> > > correct things happen.
> > > 
> > > However, if I run the test an an ad_dc_ntvfs style test, the
> > > first
> > > part work but the second part fails with errors like Client not
> > > found
> > > in kerberos database. If I run it as a local test nothing works :
> > > -(
> > > 
> > > Are there pre-existing creds I can use in a test like this?
> > 
> > Hmmm, looking at what a make testenv provides, it seems that
> > everything I need is there ...
> 
> Then again, a quick test shows that the admin account and password
> work but I cannot figure out what account $PASSWORD applies to ...
> time to dig into the code.

Richard,

Can you please let me know if you are still stuck on this?  I'm glad to
help out if you get me a few more details.

Andrew Bartlett

-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba






More information about the samba-technical mailing list