The branch, master has been updated
       via  c9888d4 samba-tool: user setexpiry: Fix incorrect Example2
      from  4da56e9 nbt_server: Factor out packet generation for netlogon reply

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit c9888d4f6f730b8a2c190935e689075ddbf88a0a
Author: Rowland Penny <rpe...@samba.org>
Date:   Tue Feb 27 13:30:37 2018 +0000

    samba-tool: user setexpiry: Fix incorrect Example2
    
    Signed-off-by: Rowland Penny <rpe...@samba.org>
    Reviewed-by: Ralph Boehme <s...@samba.org>
    
    Autobuild-User(master): Ralph Böhme <s...@samba.org>
    Autobuild-Date(master): Tue Feb 27 20:31:39 CET 2018 on sn-devel-144

-----------------------------------------------------------------------

Summary of changes:
 python/samba/netcmd/user.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/python/samba/netcmd/user.py b/python/samba/netcmd/user.py
index 94959bb..2cc74c7 100644
--- a/python/samba/netcmd/user.py
+++ b/python/samba/netcmd/user.py
@@ -615,7 +615,7 @@ samba-tool user setexpiry User1 --days=20 
--URL=ldap://samba.samdom.example.com
 Example1 shows how to set the expiration of an account in a remote LDAP 
server.  The --URL parameter is used to specify the remote target server.  The 
--username= and --password= options are used to pass the username and password 
of a user that exists on the remote server and is authorized to update that 
server.
 
 Example2:
-su samba-tool user setexpiry User2
+sudo samba-tool user setexpiry User2 --noexpiry
 
 Example2 shows how to set the account expiration of user User2 so it will 
never expire.  The user in this example resides on the  local server.   sudo is 
used so a user may run the command as root.
 


-- 
Samba Shared Repository

Reply via email to