Re: [Samba] Need help changing user password

2010-11-19 Thread Michael Wood
Hi Mark

On 18 November 2010 18:20, Mark Sheppard  wrote:
> Michael:
>
> I have checked for both net setpassword and samba-tool in Samba4 Alpha13 but
> they are not there. Maybe I can

The "net" command is definitely part of Samba 4 Alpha 13.  "net" was
renamed to "samba-tool" some time after Alpha 13.

Assuming you installed Samba to the default /usr/local/samba, it will
be in /usr/local/samba/bin.

> download samba-tool which will still work? When I try
> doing a net setpassword it brings up the help menu
> without this item listed. These are the only items
> that are listed which are similar:
>  net getlocalsid [NAME]        to get the SID for local machine name
[...]

That looks like the net command from Samba 3.  You likely have that
installed on the machine and it's in the PATH before
/usr/local/samba/bin (or /usr/local/samba/bin is not in your PATH at
all.)

You should remove Samba 3's net command (which, for Debian/Ubuntu is
in the samba-common package) unless you know you need it.  Also make
sure /usr/local/samba/bin is in your PATH, or specify the full path to
the net command like:

/usr/local/samba/bin/net setpassword username

Otherwise, do as Daniel suggested and set the password from a Windows
machine using the "Active Directory Users and Computers" tool.  See
the Samba 4 HOWTO page for where to get these tools for Windows.

> Thanks for the support and I will keep checking to see if I can obtain
> samba-tool.
>
> Mark Sheppard
>>
>> Try: net setpassword --help
>>
>> (or samba-tool for later versions of Samba4).

-- 
Michael Wood 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need help changing user password

2010-11-18 Thread Mark Sheppard

Michael:

I have checked for both net setpassword and samba-tool 
in Samba4 Alpha13 but they are not there. Maybe I can

download samba-tool which will still work? When I try
doing a net setpassword it brings up the help menu
without this item listed. These are the only items
that are listed which are similar:
  net getlocalsid [NAME]to get the SID for local machine name
  net setlocalsid SID   to set the local machine SID
  net getdomainsid the machine SID and the domain SID on the local server
  net setdomainsid SID  to set the domain SID on member servers
  net changesecretpwto change the machine password in the local secrets 
database only
this requires the -f flag as a safety barrier
Thanks for the support and I will keep checking to see 
if I can obtain samba-tool.


Mark Sheppard

Try: net setpassword --help

(or samba-tool for later versions of Samba4).

--
Michael Wood 

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need help changing user password

2010-11-17 Thread Michael Wood
On 17 November 2010 20:23, Mark Sheppard  wrote:
> Hi!
> I am currently using Samba4 Alpha13 but I have not been
> able to change a users password. I curently can add a
> user using ldbadd and a ldif file but I would like to
> know the recommended way of changing a users password.
> It would be nice if it could be done from the adminstrator account so that
> you do not need to know
> the original password. Thanks for the help!

Try: net setpassword --help

(or samba-tool for later versions of Samba4).

-- 
Michael Wood 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need help changing user password

2010-11-17 Thread Daniel Müller
Hi!
Realy simple:

LOgin as administrator to your windows client.
Use the tool Active Directory Users and Groups
within windows.
If you do not have it. Install it from the Microsoft page.

Be aware:

Of Password Policy Settings!!

Along with Samba4 the Password Policy you can only set from console, with 
'net  pwsettings ' command.
net  pwsettings  –help:

usage: (show | set )

options:
  -h, --helpshow this help message and exit
  -H H  LDB URL for database or target server
  --quiet   Be quiet
  --complexity=COMPLEXITY
The password complexity (on | off | default).
Default
is 'on'
  --history-length=HISTORY_LENGTH
The password history length ( | default).
Default is 24.
  --min-pwd-length=MIN_PWD_LENGTH
The minimum password length ( | default).
Default is 7.
  --min-pwd-age=MIN_PWD_AGE
The minimum password age ( |
default).  Default is 1.
  --max-pwd-age=MAX_PWD_AGE
The maximum password age ( |
default).  Default is 43.

  Samba Common Options:
-s FILE, --configfile=FILE
Configuration file
-d DEBUGLEVEL, --debuglevel=DEBUGLEVEL
debug level
--option=OPTION set smb.conf option from command line
--realm=REALM   set the realm name

  Credentials Options:
--simple-bind-dn=DN
DN to use for a simple bind
--password=PASSWORD
Password
-U USERNAME, --username=USERNAME
Username
-W WORKGROUP, --workgroup=WORKGROUP
Workgroup
-N, --no-pass   Don't ask for a password
-k KERBEROS, --kerberos=KERBEROS
Use Kerberos

  Version Options:
--version   Display version number

So I set my Password Policy:

net  pwsettings  set –--complexity=off
net  pwsettings  set ---max-pwd-age=60 #<---60 Days
net  pwsettings  set –min-pwd-length=5

net  pwsettings  show:

[r...@node1 ~]# net pwsettings show
Password informations for domain 'DC=tuebingen,DC=tst,DC=loc'

Password complexity: off
Password history length: 24
Minimum password length: 5
Minimum password age (days): 1



---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
Auftrag von Mark Sheppard
Gesendet: Mittwoch, 17. November 2010 19:24
An: samba@lists.samba.org
Betreff: [Samba] Need help changing user password

Hi!
I am currently using Samba4 Alpha13 but I have not been
able to change a users password. I curently can add a
user using ldbadd and a ldif file but I would like to
know the recommended way of changing a users password.
It would be nice if it could be done from the 
adminstrator account so that you do not need to know
the original password. Thanks for the help!

MS


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Need help changing user password

2010-11-17 Thread Mark Sheppard

Hi!
I am currently using Samba4 Alpha13 but I have not been
able to change a users password. I curently can add a
user using ldbadd and a ldif file but I would like to
know the recommended way of changing a users password.
It would be nice if it could be done from the 
adminstrator account so that you do not need to know

the original password. Thanks for the help!

MS


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba