diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-01-03 18:11:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:49:40 -0500 |
commit | 6c81984ddbe79ace8348c08b4a7eb7dcba75fb98 (patch) | |
tree | 27b3c2ebe454ed98ad268dd599e44f16ab8e7aed /source4/scripting/libjs/upgrade.js | |
parent | 63d718e243fd03e6ea24c47e7442975ec088a5b5 (diff) | |
download | samba-6c81984ddbe79ace8348c08b4a7eb7dcba75fb98.tar.gz samba-6c81984ddbe79ace8348c08b4a7eb7dcba75fb98.tar.bz2 samba-6c81984ddbe79ace8348c08b4a7eb7dcba75fb98.zip |
r12697: Support empty fullname fields in unix accounts
(This used to be commit 3d70ebca0b706ae22bc7a3f48c2247c450c42026)
Diffstat (limited to 'source4/scripting/libjs/upgrade.js')
-rw-r--r-- | source4/scripting/libjs/upgrade.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/libjs/upgrade.js b/source4/scripting/libjs/upgrade.js index 60a9725b43..4ac6b6db34 100644 --- a/source4/scripting/libjs/upgrade.js +++ b/source4/scripting/libjs/upgrade.js @@ -113,6 +113,10 @@ function upgrade_sam_account(ldb,acc,domaindn,domainsid) var pts = split(',', acc.fullname); acc.fullname = pts[0]; + + if (acc.fullname == undefined) { + acc.fullname = acc.username; + } assert(acc.fullname != undefined); assert(acc.nt_username != undefined); |