diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-03-11 07:07:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:56:59 -0500 |
commit | acd190d8f69ea270cd0a746faab2d1590cca7ae9 (patch) | |
tree | fea8e4aceab91009924164111feaba15e188f011 /source4/scripting | |
parent | 80940b6dc50e6b6050a3c7ef0b4fcddbb977700e (diff) | |
download | samba-acd190d8f69ea270cd0a746faab2d1590cca7ae9.tar.gz samba-acd190d8f69ea270cd0a746faab2d1590cca7ae9.tar.bz2 samba-acd190d8f69ea270cd0a746faab2d1590cca7ae9.zip |
r14200: Now we have real USN support, don't force the values in the provision
scripts.
This tests the real module, and avoids duplication.
Andrew Bartlett
(This used to be commit 0859ba59ae00029177cd63366fc59efe8b19c973)
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/libjs/provision.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js index 84ed69231b..b01fec82c7 100644 --- a/source4/scripting/libjs/provision.js +++ b/source4/scripting/libjs/provision.js @@ -4,9 +4,6 @@ Released under the GNU GPL v2 or later */ -/* used to generate sequence numbers for records */ -provision_next_usn = 1; - sys = sys_init(); /* @@ -59,8 +56,6 @@ dn: CN=%s,CN=ForeignSecurityPrincipals,%s objectClass: top objectClass: foreignSecurityPrincipal description: %s -uSNCreated: 1 -uSNChanged: 1 ", sid, subobj.BASEDN, desc); /* deliberately ignore errors from this, as the records may @@ -132,14 +127,6 @@ function hostip() return list[0]; } -/* - return next USN in the sequence -*/ -function nextusn() -{ - provision_next_usn = provision_next_usn+1; - return provision_next_usn; -} /* return first part of hostname @@ -358,8 +345,6 @@ function provision(subobj, message, blank, paths, session_info, credentials) var rdns = split(",", subobj.BASEDN); subobj.RDN_DC = substr(rdns[0], strlen("DC=")); - provision_next_usn = 1; - info.subobj = subobj; info.message = message; info.credentials = credentials; @@ -465,7 +450,6 @@ function provision_guess() subobj.NTTIME = nttime; subobj.LDAPTIME = ldaptime; subobj.DATESTRING = datestring; - subobj.USN = nextusn; subobj.ROOT = findnss(nss.getpwnam, "root"); subobj.NOBODY = findnss(nss.getpwnam, "nobody"); subobj.NOGROUP = findnss(nss.getgrnam, "nogroup", "nobody"); |