[Samba] How to set unix properties from command line

Luke Bigum luke.bigum at lmax.com
Fri Dec 4 12:04:46 UTC 2015


Relevant bits from our user creation script:

samba-tool user create -H ldaps://${DC} -k yes --random-password   --surname="${SNAME}" --given-name="${FNAME}"  --mail-address="${EMAILSETUP}" --uid=${USERID} --uid-number=${MYUID} --gid-number=100 --login-shell="${USHELL}" --gecos="${GECOS}" ${USERID}

samba-tool user setpassword ${USERID} -H ldaps://${DC} -k yes --newpassword="${PASSWD}"

LDIF="${LDIF}
replace: unixHomeDirectory
unixHomeDirectory: ${UHOMEDIR}
-"

ldapmodify  -Y GSSAPI -Q -O minssf=0,maxssf=0 -H ldaps://${DC}  -f <( echo "${LDIF}" )


--
Luke Bigum
Senior Systems Engineer

Information Systems
Ph: +44 (0) 20 3192 2520

----- Original Message -----
From: "Nico De Ranter" <nico.deranter at esaturnus.com>
To: samba at lists.samba.org
Sent: Friday, 4 December, 2015 11:52:46 AM
Subject: [Samba] How to set unix properties from command line

Samba version: 4.1.17

I want to use a Samba AD controller to manage access to both my Windows and
Linux boxes.  I managed to import my old Samba users using pdbedit however
as I want to use the new Samba AD controller to manage access to the Linux
workstations too I want to configure Unix properties on all my accounts.
Unfortunately I cannot find any command-line tool on Linux that will allow
me to easily fill in these properties. I looked at samba-tool and pdbedit
but they seem to be able to change only basic settings.  I know I can do it
through RSAT but I don't want to have to start a Windows vm just to manage
my users.

How can I manage Unix properties for my Samba AD users from the
command-line in Linux?

Thanks in advance,

Nico

-- 
Nico De Ranter

Operations Engineer

T. +32 16 40 12 82

M. +32 497 91 53 78


<http://www.esaturnus.com>


<http://www.esaturnus.com>




<http://www.esaturnus.com/company/news/313>



<http://www.esaturnus.com/>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
---

LMAX Exchange, Yellow Building, 1A Nicholas Road, London W11 4AN
http://www.LMAX.com/

#1 Fastest Growing Tech Company in the UK - Sunday Times Tech Track 100 (2014) 

2015 Best Margin Sector Platform - Profit & Loss Readers' Choice Awards
2015 Best FX Trading Venue - ECN/MTF - WSL Institutional Trading Awards
2014 Best Margin Sector Platform - Profit & Loss Readers' Choice Awards
2014 Best FX Trading Venue - ECN/MTF - WSL Institutional Trading Awards
2014 Best Infrastructure/Technology Initiative - WSL Institutional Trading Awards
2013 #15 Fastest Growing Tech Company in the UK - Sunday Times Tech Track 100
2013 Best Overall Testing Project - The European Software Testing Awards
2013 Best Margin Sector Platform - Profit & Loss Readers' Choice Awards
2013 Best FX Trading Platform - ECN/MTF - WSL Institutional Trading Awards
2013 Best Executing Venue - Forex Magnates Awards

---

FX and CFDs are leveraged products that can result in losses exceeding your deposit. They are not suitable for everyone so please ensure you fully understand the risks involved.

This message and its attachments are confidential, may not be disclosed or used by any person other than the addressee and are intended only for the named recipient(s). This message is not intended for any recipient(s) who based on their nationality, place of business, domicile or for any other reason, is/are subject to local laws or regulations which prohibit the provision of such products and services. This message is subject to the following terms (http://lmax.com/pdf/general-disclaimers.pdf), if you cannot access these, please notify us by replying to this email and we will send you the terms. If you are not the intended recipient, please notify the sender immediately and delete any copies of this message.

LMAX Exchange is the trading name of LMAX Limited. LMAX Limited operates a multilateral trading facility. LMAX Limited is authorised and regulated by the Financial Conduct Authority (firm registration number 509778) and is a company registered in England and Wales (number 6505809).

LMAX Hong Kong Limited is a wholly-owned subsidiary of LMAX Limited. LMAX Hong Kong is licensed by the Securities and Futures Commission in Hong Kong to conduct Type 3 (leveraged foreign exchange trading) regulated activity with CE Number BDV088.



More information about the samba mailing list