Safe Haskell | Safe-Inferred |
---|
System.Authenticate.SmbClient
- loginSmbClient :: Text -> Text -> Text -> Text -> IO SmbClientResult
- type SmbClientResult = Either () Text
Documentation
Authenticate with smbclient
command.
Return Right if login success, Left otherwise.
This does not accept empty username or password, because those has always been success as Guest login.
type SmbClientResult = Either () TextSource
The login result type.
If success, return Right with actual username.