[yast-commit] r39199 - /trunk/kerberos-server/src/KerberosServer.pm
Author: mcalmer Date: Fri Jul 6 12:50:55 2007 New Revision: 39199 URL: http://svn.opensuse.org/viewcvs/yast?rev=39199&view=rev Log: add kerberos.schema only one time; enhance write progress Modified: trunk/kerberos-server/src/KerberosServer.pm Modified: trunk/kerberos-server/src/KerberosServer.pm URL: http://svn.opensuse.org/viewcvs/yast/trunk/kerberos-server/src/KerberosServer.pm?rev=39199&r1=39198&r2=39199&view=diff ============================================================================== --- trunk/kerberos-server/src/KerberosServer.pm (original) +++ trunk/kerberos-server/src/KerberosServer.pm Fri Jul 6 12:50:55 2007 @@ -1,7 +1,7 @@ #! /usr/bin/perl -w # ------------------------------------------------------------------------------ -# Copyright (c) 2006 Novell, Inc. All Rights Reserved. +# Copyright (c) 2006,2007 Novell, Inc. All Rights Reserved. # # # This program is free software; you can redistribute it and/or modify it under @@ -744,14 +744,17 @@ my $schemas = LdapServer->ReadSchemaIncludeList(); - push @{$schemas}, "/usr/share/doc/packages/krb5/kerberos.schema"; - $ret = LdapServer->WriteSchemaIncludeList($schemas); - if(! $ret) + if( !grep( ($_ =~ /kerberos.schema/), @{$schemas})) { - y2error("LdapServer => WriteSchemaIncludeList call failed"); - return 0; + push @{$schemas}, "/usr/share/doc/packages/krb5/kerberos.schema"; + $ret = LdapServer->WriteSchemaIncludeList($schemas); + if(! $ret) + { + y2error("LdapServer => WriteSchemaIncludeList call failed"); + return 0; + } } - + $ret = LdapServer->WriteConfigureCommonServerCertificate(1); if(! $ret) { @@ -2170,7 +2173,7 @@ # KerberosServer read dialog caption my $caption = __("Saving kerberos-server Configuration"); - my $steps = 1; + my $steps = 2; my $sl = 1.0; sleep($sl); @@ -2178,23 +2181,32 @@ # We do not set help text here, because it was set outside Progress->New($caption, " ", $steps, [ # Progress stage 1/2 - __("Write the settings"), + __("Write Firewall settings"), + # Progress stage 2/2 + __("Write Kerberos settings"), ], [ # Progress step 1/2 - __("Writing the settings..."), + __("Writing Firewall settings..."), + # Progress step 2/2 + __("Writing Kerberos settings..."), # Progress finished __("Finished") - ], - "" + ], + "" ); - # write settings + # Write Firewall settings Progress->NextStage(); my $progress_orig = Progress->set(0); SuSEFirewall->Write(); Progress->set($progress_orig); + sleep($sl); + + # write Kerberos settings + Progress->NextStage(); + my $ret = $class->WriteDatabase(); # Error message -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mcalmer@svn.opensuse.org