1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/python/samba
Jule Anger 899e66d47f samdb: add fullname_from_names() method
Add a method to construct the fullname, using the given name, the initials
and the surname.
If one of this values is empty, try to use the old one, given by an
attributs set.
If the combination is empty, the method will return the fallback-default
parameter.

Use this method to construct the CN or the displayName of users or
contacts.

Signed-off-by: Jule Anger <ja@sernet.de>
Reviewed-by: Björn Baumbach <bb@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2020-10-01 01:18:39 +00:00
..
emulate traffic_packets: fix SyntaxWarning: "is" with a literal 2020-04-27 12:19:58 +00:00
gp_parse python compat: remove ConfigParser 2020-08-24 01:46:30 +00:00
kcc samba_kcc: avoid ValueError when local connections are less than 2 2019-12-18 11:37:53 +00:00
netcmd Fixed arrow keys typo to the computer move command utility 2020-09-04 16:57:30 +00:00
provision provision: BIND 9.17.x is not supported 2020-09-24 05:55:43 +00:00
samba3 python/samba3: import passdb in the manner it is used 2018-11-01 05:08:14 +01:00
subunit python: Remove remaining references to third_party python libs 2020-08-21 00:12:51 +00:00
tests python/tests/gpo: this should fix a Popen deadlock 2020-09-07 12:02:15 +00:00
__init__.py python: Remove remaining references to third_party python libs 2020-08-21 00:12:51 +00:00
auth_util.py python: fix slow's mail address 2020-06-05 10:32:30 +00:00
colour.py python/colour: add colourizing and switch functions 2018-05-31 01:57:17 +02:00
common.py python: avoid useless work in dsdb_Dn.__cmp__ 2018-11-01 05:08:12 +01:00
compat.py python compat: remove ConfigParser 2020-08-24 01:46:30 +00:00
dbchecker.py dbcheck: Allow a dangling forward link outside our known NCs 2020-07-29 03:19:02 +00:00
descriptor.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
dnsserver.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
domain_update.py python/domain_update: remove unused imports 2018-10-25 21:45:53 +02:00
drs_utils.py drs_utils: Avoid invalid dereference of v8 requests 2018-11-06 07:15:33 +01:00
forest_update.py python/forest_update: remove unused imports 2018-10-25 21:45:53 +02:00
getopt.py python getopt: Add bytes option type 2019-07-02 02:23:08 +00:00
gp_ext_loader.py python/gp_ext_loader: remove unused imports 2018-10-25 21:45:53 +02:00
gp_msgs_ext.py GPO: Add rsop output for Messages policy 2020-08-27 17:19:48 +00:00
gp_scripts_ext.py gpo: Script ext should not crash if script missing 2020-08-27 15:59:33 +00:00
gp_sec_ext.py gpo: gp_krb_ext always uses set_kdc_tdb to update 2020-08-27 15:59:33 +00:00
gp_smb_conf_ext.py GPO: Add rsop output for smb.conf policy 2020-08-27 15:59:34 +00:00
gp_sudoers_ext.py gpo: Sudoers ext should not crash if policy missing 2020-08-27 15:59:33 +00:00
gpclass.py gpo: Pass necessary parameters to rsop 2020-09-02 09:11:30 +00:00
graph.py py/graph: use 2.6 compatible check for set membership 2019-03-20 06:36:05 +00:00
hostconfig.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
idmap.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
join.py python compat: remove text_type 2020-08-11 16:37:35 +00:00
logger.py logger: use color automatically for a tty 2018-11-21 10:46:20 +01:00
mdb_util.py mdb_util: Better error message if lmdb-utils not installed 2018-11-09 21:07:47 +01:00
ms_display_specifiers.py python/samba: port open to io.open for PY2/PY3 compat 2018-09-03 03:22:20 +02:00
ms_forest_updates_markdown.py python/ms_forest_updates_markdown: avoid implicit global variable 2020-07-17 07:17:39 +00:00
ms_schema_markdown.py PEP8: fix E305: expected 2 blank lines after class or function definition, found 1 2018-08-24 07:49:30 +02:00
ms_schema.py python compat: remove string_types 2020-08-11 16:37:35 +00:00
ndr.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
ntacls.py pysmbd: add "session_info" arg tp py_smbd_create_file() 2019-12-20 11:41:42 +00:00
remove_dc.py python/remove_dc: fix Exception construction 2018-11-01 05:08:13 +01:00
samdb.py samdb: add fullname_from_names() method 2020-10-01 01:18:39 +00:00
schema.py schema.py: avoid inefficient string concatenations 2019-09-24 12:22:44 +00:00
sd_utils.py PEP8: fix E231: missing whitespace after ',' 2018-08-24 07:49:28 +02:00
sites.py PEP8: fix E128: continuation line under-indented for visual indent 2018-08-24 07:49:27 +02:00
subnets.py python/subnets: use the correct variable name 2018-11-01 05:08:11 +01:00
tdb_util.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
upgrade.py classicupgrade: fix a a bytes-like object is required, not 'str' error 2019-09-23 12:58:20 +00:00
upgradehelpers.py python/upgradehelpers: remove unused imports and variables 2020-07-17 07:17:40 +00:00
uptodateness.py python/uptodateness: cope with unknown invocation ID 2019-01-19 19:21:19 +01:00
xattr.py python/xattr: remove unused variable 2018-11-01 05:08:14 +01:00