Click here to Skip to main content
15,885,141 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Caret problem Pin
Richard MacCutchan10-Jul-21 22:13
mveRichard MacCutchan10-Jul-21 22:13 
GeneralRe: Caret problem Pin
Dave Kreskowiak11-Jul-21 5:41
mveDave Kreskowiak11-Jul-21 5:41 
GeneralRe: Caret problem Pin
Richard MacCutchan11-Jul-21 5:44
mveRichard MacCutchan11-Jul-21 5:44 
GeneralRe: Caret problem Pin
Dave Kreskowiak11-Jul-21 5:45
mveDave Kreskowiak11-Jul-21 5:45 
GeneralRe: Caret problem Pin
Jacob Ethan 202126-Jul-21 0:12
Jacob Ethan 202126-Jul-21 0:12 
QuestionRe: Caret problem Pin
CHill608-Jul-21 22:06
mveCHill608-Jul-21 22:06 
AnswerRe: Caret problem Pin
Richard MacCutchan10-Jul-21 22:14
mveRichard MacCutchan10-Jul-21 22:14 
GeneralRe: Caret problem Pin
Uchiha Yueh11-Jul-21 1:16
Uchiha Yueh11-Jul-21 1:16 
Here's the code that Dave has given to me (I changed it a little bit):

VB.NET
Imports System.DirectoryServices.AccountManagement
Module Module1

    Sub Main(ByVal args() As String)

        Dim isWithAD As Boolean

        Try

            Dim pc As PrincipalContext = New PrincipalContext(ContextType.Domain, "xx.xx.xx.xx")
            Using (pc)
                isWithAD = pc.ValidateCredentials(args(0), args(1))
            End Using

            Console.WriteLine(IIf(isWithAD = True, "Success", "Failed"))

        Catch ex As Exception

            Console.WriteLine("Error [" + ex.ToString + "] - " + ex.InnerException.ToString)

        End Try

    End Sub

End Module


The syntax is: CLDAP <username> <password>.

Ex:
CLDAP john_smith 12345
CLDAP "john_smith" "12345"
CLDAP 'john_smith' '12345'

All examples are valid and return a true value. Caret character can be accepted if it is placed in the beginning or in the middle of the password. But, if a caret character is placed at the end of the password, that's where the problem starts Frown | :(
GeneralRe: Caret problem Pin
Richard MacCutchan11-Jul-21 2:25
mveRichard MacCutchan11-Jul-21 2:25 
GeneralRe: Caret problem Pin
Dave Kreskowiak11-Jul-21 5:43
mveDave Kreskowiak11-Jul-21 5:43 
Questionretrieve the group header and descriptions(top and bottom) Pin
JR2127-Jun-21 23:48
JR2127-Jun-21 23:48 
QuestionRe: retrieve the group header and descriptions(top and bottom) Pin
JR21217-Jun-21 19:45
JR21217-Jun-21 19:45 
AnswerRe: retrieve the group header and descriptions(top and bottom) Pin
Richard MacCutchan17-Jun-21 21:31
mveRichard MacCutchan17-Jun-21 21:31 
GeneralRe: retrieve the group header and descriptions(top and bottom) Pin
JR21217-Jun-21 23:20
JR21217-Jun-21 23:20 
GeneralRe: retrieve the group header and descriptions(top and bottom) Pin
Richard MacCutchan18-Jun-21 0:15
mveRichard MacCutchan18-Jun-21 0:15 
GeneralRe: retrieve the group header and descriptions(top and bottom) Pin
JR21218-Jun-21 18:17
JR21218-Jun-21 18:17 
GeneralRe: retrieve the group header and descriptions(top and bottom) Pin
Richard MacCutchan18-Jun-21 22:13
mveRichard MacCutchan18-Jun-21 22:13 
GeneralRe: retrieve the group header and descriptions(top and bottom) Pin
JR21219-Jun-21 6:23
JR21219-Jun-21 6:23 
GeneralRe: retrieve the group header and descriptions(top and bottom) Pin
Richard MacCutchan19-Jun-21 6:52
mveRichard MacCutchan19-Jun-21 6:52 
QuestionListview collapse/expand icon Pin
JR2127-Jun-21 19:12
JR2127-Jun-21 19:12 
Questioncalculator Pin
lefa mokoena27-May-21 2:16
lefa mokoena27-May-21 2:16 
AnswerRe: calculator PinPopular
Richard Deeming27-May-21 3:04
mveRichard Deeming27-May-21 3:04 
QuestionAlign icon to the center in ListSubItem ListView VB6 Pin
Sal Sal19-May-21 3:41
Sal Sal19-May-21 3:41 
QuestionRe: Align icon to the center in ListSubItem ListView VB6 Pin
CHill6021-May-21 2:58
mveCHill6021-May-21 2:58 
AnswerRe: Align icon to the center in ListSubItem ListView VB6 Pin
Sal Sal21-May-21 4:00
Sal Sal21-May-21 4:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.