Tests for 'samba-tool user create' with RFC2307 attributes
authorAlexander Wuerstlein <arw@arw.name>
Sun, 30 Sep 2012 02:32:00 +0000 (04:32 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 18 Oct 2012 06:10:58 +0000 (17:10 +1100)
commit071047e8953f36a4c71c30d9540323578a4204f2
tree3b4e3fea9e486a6691e70173ce4d0e30d0a77675
parentbfdaaf2327441c0cf909a70f9b3ca781caadbddc
Tests for 'samba-tool user create' with RFC2307 attributes

Check if attributes are correctly set and read from SamDB
Test automatic creation of attributes from getpwent (NSS)
Check if overriding NSS attributes works

getpwent will be skipped if the current UID of the user running the
tests has no passwd entry (getpwuid(geteuid())).

If a user with the name of the current UID already exists in the
directory, the getpwent test will fail. If that should happen, the
test would need to be updated to use a nonexistent UID that is
visible to the Python 'pwd' module.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/scripting/python/samba/tests/samba_tool/base.py
source4/scripting/python/samba/tests/samba_tool/user.py