1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

Addition of userPrincipalName attribute when new account is created

This commit is contained in:
Lukasz Zalewski 2010-10-16 19:51:09 +01:00 committed by Matthias Dieter Wallnöfer
parent 73d6bb7447
commit 87fd2fd157

View File

@ -274,10 +274,12 @@ member: %s
user_dn = "CN=%s,%s,%s" % (cn, (userou or "CN=Users"), self.domain_dn())
user_principal_name = "%s@%s" % (username, self.domain_dn().replace("DC=", "").replace(",", "."))
# The new user record. Note the reliance on the SAMLDB module which
# fills in the default informations
ldbmessage = {"dn": user_dn,
"sAMAccountName": username,
"userPrincipalName": user_principal_name,
"objectClass": "user"}
if surname is not None: