From: Justin Anderson Date: Thu, 2 Oct 2008 18:03:06 +0000 (+0000) Subject: Update to allow change password from select and enter identity dialogs X-Git-Tag: krb5-1.7-alpha1~358 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c781d197fecfe65a075458c50eeb34d6fa68c89f;p=krb5.git Update to allow change password from select and enter identity dialogs ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20813 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kim/agent/mac/AuthenticationController.m b/src/kim/agent/mac/AuthenticationController.m index 8880cb809..742c622fe 100644 --- a/src/kim/agent/mac/AuthenticationController.m +++ b/src/kim/agent/mac/AuthenticationController.m @@ -75,7 +75,7 @@ { [[self window] center]; // We need to float over the loginwindow and SecurityAgent so use its hardcoded level. - [[self window] setLevel:2003]; + [[self window] setLevel:NSScreenSaverWindowLevel]; lifetimeFormatter.displaySeconds = NO; lifetimeFormatter.displayShortFormat = NO; diff --git a/src/kim/agent/mac/KerberosAgentListener.m b/src/kim/agent/mac/KerberosAgentListener.m index 019fbb4ff..e192e1991 100644 --- a/src/kim/agent/mac/KerberosAgentListener.m +++ b/src/kim/agent/mac/KerberosAgentListener.m @@ -166,9 +166,10 @@ static KerberosAgentListener *sharedListener = nil; { kim_error err = KIM_NO_ERROR; mach_port_t reply_port = [[info objectForKey:@"reply_port"] integerValue]; + NSString *identityString = [info objectForKey:@"identity_string"]; kim_identity identity = NULL; kim_options options = NULL; - NSString *identityString = [info objectForKey:@"identity_string"]; + BOOL wants_change_password = [[info objectForKey:@"wants_change_password"] boolValue]; if (identityString) { err = kim_identity_create_from_string (&identity, [identityString UTF8String]); @@ -176,9 +177,10 @@ static KerberosAgentListener *sharedListener = nil; if (!err) { options = [KIMUtilities kimOptionsForDictionary:[info objectForKey:@"options"]]; - } + + } if (!err) { - err = kim_handle_reply_enter_identity(reply_port, identity, options, error); + err = kim_handle_reply_enter_identity(reply_port, identity, options, wants_change_password, error); } kim_options_free (&options); @@ -211,6 +213,7 @@ static KerberosAgentListener *sharedListener = nil; mach_port_t reply_port = [portNumber integerValue]; kim_identity identity = NULL; kim_options options = NULL; + BOOL wants_change_password = [[info objectForKey:@"wants_change_password"] boolValue]; NSLog(@"%s", __FUNCTION__); if (identityString) { @@ -222,7 +225,7 @@ static KerberosAgentListener *sharedListener = nil; } if (!err) { - err = kim_handle_reply_select_identity(reply_port, identity, options, error); + err = kim_handle_reply_select_identity(reply_port, identity, options, wants_change_password, error); } kim_options_free (&options); diff --git a/src/kim/agent/mac/SelectIdentityController.m b/src/kim/agent/mac/SelectIdentityController.m index f6f891ab3..243670e77 100644 --- a/src/kim/agent/mac/SelectIdentityController.m +++ b/src/kim/agent/mac/SelectIdentityController.m @@ -56,7 +56,7 @@ // We need to float over the loginwindow and SecurityAgent so use its hardcoded level. [[self window] center]; - [[self window] setLevel:2003]; + [[self window] setLevel:NSScreenSaverWindowLevel]; [identityTableView setDoubleAction:@selector(select:)]; identities = [[Identities alloc] init]; diff --git a/src/kim/agent/mac/resources/English.lproj/Authentication.xib b/src/kim/agent/mac/resources/English.lproj/Authentication.xib index e9745bd2a..dbd68481c 100644 --- a/src/kim/agent/mac/resources/English.lproj/Authentication.xib +++ b/src/kim/agent/mac/resources/English.lproj/Authentication.xib @@ -8,12 +8,9 @@ 352.00 YES - - - + - YES @@ -91,6 +88,7 @@ 266 {{101, 103}, {382, 54}} + YES 67239424 @@ -127,6 +125,7 @@ 290 {{104, 59}, {379, 26}} + YES 343014976 @@ -229,6 +228,7 @@ 292 {{17, 64}, {82, 17}} + YES 67239424 @@ -245,6 +245,7 @@ 289 {{388, 15}, {98, 32}} + YES 67239424 @@ -266,6 +267,7 @@ 289 {{295, 15}, {93, 32}} + YES 67239424 @@ -287,6 +289,7 @@ 268 {{20, 103}, {64, 64}} + BadgedImageView @@ -294,6 +297,7 @@ 292 {{20, 20}, {38, 26}} + YES -2076049856 @@ -356,7 +360,6 @@ - 2 YES 1 YES @@ -370,6 +373,7 @@ {{66, 25}, {16, 16}} + 28938 1.600000e+01 1.000000e+02 @@ -377,6 +381,7 @@ {500, 187} + NSView @@ -389,6 +394,7 @@ 266 {{104, 82}, {376, 22}} + YES -1804468671 @@ -411,6 +417,7 @@ 289 {{388, 12}, {98, 32}} + YES 67239424 @@ -432,6 +439,7 @@ 289 {{295, 12}, {93, 32}} + YES 67239424 @@ -451,8 +459,9 @@ 266 - {{101, 126}, {382, 41}} + {{101, 124}, {382, 54}} + YES 67239424 @@ -469,6 +478,7 @@ 268 {{17, 84}, {80, 17}} + YES 68288064 @@ -485,6 +495,7 @@ 290 {{102, 58}, {380, 18}} + YES -2080244224 @@ -510,8 +521,9 @@ 268 - {{20, 126}, {64, 64}} + {{20, 124}, {64, 64}} + BadgedImageView @@ -520,13 +532,15 @@ {{19, 22}, {16, 16}} + 28938 1.600000e+01 1.000000e+02 - {500, 210} + {500, 208} + NSView @@ -539,6 +553,7 @@ 266 {{101, 140}, {382, 17}} + YES 67239424 @@ -555,6 +570,7 @@ 290 {{202, 62}, {278, 22}} + YES -1804468671 @@ -572,6 +588,7 @@ 289 {{388, 12}, {98, 32}} + YES 67239424 @@ -593,6 +610,7 @@ 274 {{101, 104}, {382, 28}} + YES 67239424 @@ -613,6 +631,7 @@ 268 {{20, 103}, {64, 64}} + BadgedImageView @@ -620,6 +639,7 @@ 289 {{295, 12}, {93, 32}} + YES 67239424 @@ -641,6 +661,7 @@ 292 {{17, 20}, {180, 61}} + YES 67239424 @@ -662,6 +683,7 @@ {{20, 22}, {16, 16}} + 28938 1.600000e+01 1.000000e+02 @@ -669,6 +691,7 @@ {500, 187} + NSView @@ -686,7 +709,7 @@ 274 - {{101, 146}, {382, 19}} + {{101, 146}, {382, 29}} YES @@ -705,7 +728,7 @@ 266 - {{101, 173}, {382, 17}} + {{101, 183}, {382, 17}} YES @@ -3165,7 +3188,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{790, 237}, {500, 210}} + {{628, 239}, {500, 208}} com.apple.InterfaceBuilder.CocoaPlugin NSSecureTextField com.apple.InterfaceBuilder.CocoaPlugin diff --git a/src/kim/agent/mac/resources/English.lproj/SelectIdentity.xib b/src/kim/agent/mac/resources/English.lproj/SelectIdentity.xib index 8953d97db..38b494bd5 100644 --- a/src/kim/agent/mac/resources/English.lproj/SelectIdentity.xib +++ b/src/kim/agent/mac/resources/English.lproj/SelectIdentity.xib @@ -9,6 +9,7 @@ YES + YES @@ -472,7 +473,6 @@ - 4 YES 2 YES @@ -520,7 +520,7 @@ {3.40282e+38, 3.40282e+38} - + 258 YES @@ -862,6 +862,7 @@ {427, 348} + {{0, 0}, {1280, 778}} {3.40282e+38, 3.40282e+38} @@ -882,8 +883,10 @@ minValidLifetime maxValidLifetime maxRenewableLifetime + identity + renewable_lifetime + valid_lifetime - Identity YES @@ -1175,22 +1178,6 @@ 300357 - - - value: selection.isRenewable - - - - - - value: selection.isRenewable - value - selection.isRenewable - 2 - - - 300366 - value: arrangedObjects.favorite @@ -1207,38 +1194,6 @@ 300367 - - - value: selection.isForwardable - - - - - - value: selection.isForwardable - value - selection.isForwardable - 2 - - - 300368 - - - - value: selection.isAddressless - - - - - - value: selection.isAddressless - value - selection.isAddressless - 2 - - - 300369 - identitiesController @@ -1247,54 +1202,6 @@ 300380 - - - value: selection.renewableLifetimeString - - - - - - value: selection.renewableLifetimeString - value - selection.renewableLifetimeString - 2 - - - 300386 - - - - value: selection.validLifetimeString - - - - - - value: selection.validLifetimeString - value - selection.validLifetimeString - 2 - - - 300388 - - - - value: selection.componentsString - - - - - - value: selection.componentsString - value - selection.componentsString - 2 - - - 300404 - hidden: selection.hasCCache @@ -1585,6 +1492,122 @@ 300486 + + + value: selection.identity + + + + + + value: selection.identity + value + selection.identity + 2 + + + 300487 + + + + value: selection.identity + + + + + + value: selection.identity + value + selection.identity + + NSContinuouslyUpdatesValue + + + 2 + + + 300489 + + + + value: selection.forwardable + + + + + + value: selection.forwardable + value + selection.forwardable + 2 + + + 300490 + + + + value: selection.addressless + + + + + + value: selection.addressless + value + selection.addressless + 2 + + + 300491 + + + + value: selection.renewable + + + + + + value: selection.renewable + value + selection.renewable + 2 + + + 300492 + + + + value: selection.renewable_lifetime + + + + + + value: selection.renewable_lifetime + value + selection.renewable_lifetime + 2 + + + 300493 + + + + value: selection.valid_lifetime + + + + + + value: selection.valid_lifetime + value + selection.valid_lifetime + 2 + + + 300494 + @@ -2326,7 +2349,7 @@ {{503, 256}, {419, 465}} - + {600, 600} {419, 298} com.apple.InterfaceBuilder.CocoaPlugin @@ -2355,7 +2378,7 @@ - 300486 + 300494