Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Mon Nov 22 18:39:06 CET 2010 on sn-devel-104
ldb.modify(m)
# Get the old "minPwdAge"
ldb.modify(m)
# Get the old "minPwdAge"
-res = ldb.search(base_dn, scope=SCOPE_BASE, attrs=["minPwdAge"])
-minPwdAge = res[0]["minPwdAge"][0]
-
+minPwdAge = ldb.get_minPwdAge()
# Set it temporarely to "0"
# Set it temporarely to "0"
-m = Message()
-m.dn = Dn(ldb, base_dn)
-m["minPwdAge"] = MessageElement("0", FLAG_MOD_REPLACE, "minPwdAge")
-ldb.modify(m)
runner = SubunitTestRunner()
rc = 0
runner = SubunitTestRunner()
rc = 0
ldb.modify(m)
# Reset the "minPwdAge" as it was before
ldb.modify(m)
# Reset the "minPwdAge" as it was before
-m = Message()
-m.dn = Dn(ldb, base_dn)
-m["minPwdAge"] = MessageElement(minPwdAge, FLAG_MOD_REPLACE, "minPwdAge")
-ldb.modify(m)
+ldb.set_minPwdAge(minPwdAge)