Actually pass along the verbose option to IPAClient.

443987
This commit is contained in:
Rob Crittenden committed 2008-05-29 16:04:28 -04:00
1 parent 8f6303adf0
commit e3ba80e3d3
17 files changed
+17 -17

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ def main():
usage()
if options.list:
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
l = client.get_all_attrs()
for x in l:
+1 -1
View File
@@ -107,7 +107,7 @@ def main():
group.setValue('cn', cn)
group.setValue('description', desc)
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
client.add_group(group)
print cn + " successfully added"
+1 -1
View File
@@ -74,7 +74,7 @@ def main():
usage()
princ_name = args[1]
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
client.add_service_principal(princ_name, "%d" % options.force)
+1 -1
View File
@@ -221,7 +221,7 @@ def main():
if shell:
user.setValue('loginshell', shell)
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
client.add_user(user)
# Set the User's password
+1 -1
View File
@@ -66,7 +66,7 @@ def main():
if options.usage or len(args) != 2:
usage()
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
aci_entry = client.get_aci_entry(aci_fields)
aci_str_list = aci_entry.getValues('aci')
+1 -1
View File
@@ -60,7 +60,7 @@ def main():
if options.usage or len(args) != 2:
usage()
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
groups = client.find_groups(args[1], ['cn','description','gidnumber','nsAccountLock'])
counter = groups[0]
+1 -1
View File
@@ -66,7 +66,7 @@ def main():
usage()
princ_name = args[1]
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
hosts = client.find_service_principal(args[1], sattrs=None)
counter = hosts[0]
+1 -1
View File
@@ -60,7 +60,7 @@ def main():
if options.usage or len(args) != 2:
usage()
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
ret = client.delete_user(args[1])
print args[1] + " successfully deleted"
+1 -1
View File
@@ -68,7 +68,7 @@ def main():
if options.usage or len(args) != 2:
usage()
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
if options.all is None:
groups = client.find_groups(args[1], ['cn','description','gidnumber','nsAccountLock'])
else:
+1 -1
View File
@@ -63,7 +63,7 @@ def main():
if options.usage or len(args) != 2:
usage()
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
hosts = client.find_service_principal(args[1], sattrs=None)
counter = hosts[0]
+1 -1
View File
@@ -65,7 +65,7 @@ def main():
if options.usage:
usage()
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
aci_entry = client.get_aci_entry(aci_fields)
aci_str_list = aci_entry.getValues('aci')
+1 -1
View File
@@ -63,7 +63,7 @@ def main():
usage()
msg = "inactivated"
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
if options.unlock:
try:
ret = client.mark_user_active(args[1])
+1 -1
View File
@@ -75,7 +75,7 @@ def main():
options, args = parse_options()
if options.list:
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
l = client.get_all_attrs()
for x in l:
+1 -1
View File
@@ -111,7 +111,7 @@ def main():
options, args = parse_options()
if options.list:
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
list = client.get_all_attrs()
for x in list:
+1 -1
View File
@@ -102,7 +102,7 @@ def main():
options, args = parse_options()
if options.list:
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
list = client.get_all_attrs()
for x in list:
+1 -1
View File
@@ -116,7 +116,7 @@ def main():
print "Password change cancelled"
return 1
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
client.modifyPassword(principal, '', password)
return 0
+1 -1
View File
@@ -116,7 +116,7 @@ def main():
if options.usage:
usage()
client = ipaclient.IPAClient()
client = ipaclient.IPAClient(verbose=options.verbose)
if options.show:
show_policy(client)