Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 290675 Details for
Bug 388265
pecl-kadm5-0.2.3.ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
patch for minor bug (get options, then test)
kadmin-policy.patch (text/plain), 1.79 KB, created by
Paul Davis
on 2011-10-23 19:40:59 UTC
(
hide
)
Description:
patch for minor bug (get options, then test)
Filename:
MIME Type:
Creator:
Paul Davis
Created:
2011-10-23 19:40:59 UTC
Size:
1.79 KB
patch
obsolete
>--- kadm5-0.2.3/kadm5.c 2003-05-28 06:51:42.000000000 -0400 >+++ kadm5-0.2.3-r1/kadm5.c 2011-10-21 15:00:28.000000000 -0400 >@@ -610,24 +610,6 @@ > RETURN_FALSE; > } > >- /* >- * If -policy was not specified, and -clearpolicy was not >- * specified, and the policy "default" exists, assign it. If >- * -clearpolicy was specified, then KADM5_POLICY_CLR should be >- * unset, since it is never valid for kadm5_create_principal. >- */ >- if ((! (mask & KADM5_POLICY)) && (! (mask & KADM5_POLICY_CLR))) { >- if (! kadm5_get_policy(handle, "default", &defpol)) { >- php_error(E_WARNING, "No policy specified for %s; assigning \"default\"", princstr); >- princ.policy = "default"; >- mask |= KADM5_POLICY; >- (void) kadm5_free_policy_ent(handle, &defpol); >- } else { >- php_error(E_WARNING, "No policy specified for %s; defaulting to no policy", princstr); >- } >- } >- mask &= ~KADM5_POLICY_CLR; >- > /* parsing options */ > if (options) { > HashTable *options_hash; >@@ -700,6 +682,24 @@ > } > } > >+ /* >+ * If -policy was not specified, and -clearpolicy was not >+ * specified, and the policy "default" exists, assign it. If >+ * -clearpolicy was specified, then KADM5_POLICY_CLR should be >+ * unset, since it is never valid for kadm5_create_principal. >+ */ >+ if ((! (mask & KADM5_POLICY)) && (! (mask & KADM5_POLICY_CLR))) { >+ if (! kadm5_get_policy(handle, "default", &defpol)) { >+ php_error(E_WARNING, "No policy specified for %s; assigning \"default\"", princstr); >+ princ.policy = "default"; >+ mask |= KADM5_POLICY; >+ (void) kadm5_free_policy_ent(handle, &defpol); >+ } else { >+ php_error(E_WARNING, "No policy specified for %s; defaulting to no policy", princstr); >+ } >+ } >+ mask &= ~KADM5_POLICY_CLR; >+ > if (randkey) { > princ.attributes |= KRB5_KDB_DISALLOW_ALL_TIX; /* set notix */ > mask |= KADM5_ATTRIBUTES;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 388265
:
290669
|
290671
|
290673
| 290675