smb.conf
相对代码[share]
path = /home/lingo/share
browseable = No
admin users = pi
guest ok = Yes
read only = No
valid users = hhh
write list = hhh
答案 0 :(得分:0)
- (IBAction)loginButtonAction:(id)sender {
NSURL *authorizationEndpoint = [NSURL URLWithString:@""];
NSURL *tokenEndpoint = [NSURL URLWithString:@""];
OIDServiceConfiguration *configuration = [[OIDServiceConfiguration alloc] initWithAuthorizationEndpoint:authorizationEndpoint tokenEndpoint:tokenEndpoint];
NSString *clientId = @"";
NSURL *redirectUri = [NSURL URLWithString:@""];
OIDAuthorizationRequest *builder = [[OIDAuthorizationRequest alloc] initWithConfiguration:configuration clientId:clientId scopes:@[OIDScopeOpenID] redirectURL:redirectUri responseType:OIDResponseTypeCode additionalParameters:nil];
// performs authentication request
AppDelegate *appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate;
appDelegate.currentAuthorizationFlow = [OIDAuthState authStateByPresentingAuthorizationRequest:builder presentingViewController:self callback:^(OIDAuthState *_Nullable authState, NSError *_Nullable error) {
if (authState) {
NSLog(@"Got authorization tokens. Access token: %@", authState.lastTokenResponse.accessToken);
} else {
NSLog(@"Authorization error: %@", [error localizedDescription]);
}
}];
}
确定哪些人可以连接
valid users
确定谁可以root用户身份执行操作
看看这张桌子: