mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-13 17:02:02 -05:00
Actually pass along the verbose option to IPAClient.
443987
This commit is contained in:
1 parent
8f6303adf0
commit
e3ba80e3d3
17 files changed
+17
-17
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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])
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user