Promotic
WikipediaLinkedInYoutubeTwitterFacebook

FindUserIdNet - method of object Pm

Description:
Getting the identifier of the network user that refers to the entered login parameters.
Syntax:
FindUserIdNet(sName As String, sPassword As String, sAddress As String) As String
Calling:
b = Pm.FindUserIdNet(sName, sPassword, sAddress)
Parameters:
sName(String) Login name of the user
sPassword(String) Login password of the user
sAddress(String) Network address of the user (e.g. 192.168.0.1)
Note:
This method is not functional for Web Panels.
Example1:
Test if the network user, entered by the login name and password, is the member of the "OPERATOR" group
If Pm.TestUserInGroup(1, "OPERATOR", Pm.FindUserIdNet("JAN NOVY", "JN", "")) Then
'   ...
End If
Example2:
Test in the PmWeb.onNewRequest event if the network user that invoked the request, is the member of the "OPERATOR" group
If Pm.TestUserInGroup(1, "OPERATOR", Pm.FindUserIdNet( pEvent.HostName, pEvent.HostPwd, pEvent.HostAddr)) Then
' ...
End If
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- FindUserIdNet
 
 
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice