sys-auth-smbclient-2.0.0.0: Auth with smbclient command

Safe HaskellSafe-Inferred

System.Authenticate.SmbClient

Synopsis

Documentation

loginSmbClientSource

Arguments

:: Text

Server

-> Text

Domain

-> Text

Username

-> Text

Password

-> IO SmbClientResult 

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.