Click here to Skip to main content
15,512,456 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Caret problem Pin
Richard MacCutchan10-Jul-21 23:13
mveRichard MacCutchan10-Jul-21 23:13 
GeneralRe: Caret problem Pin
Dave Kreskowiak11-Jul-21 6:41
mveDave Kreskowiak11-Jul-21 6:41 
GeneralRe: Caret problem Pin
Richard MacCutchan11-Jul-21 6:44
mveRichard MacCutchan11-Jul-21 6:44 
GeneralRe: Caret problem Pin
Dave Kreskowiak11-Jul-21 6:45
mveDave Kreskowiak11-Jul-21 6:45 
GeneralRe: Caret problem Pin
Jacob Ethan 202126-Jul-21 1:12
Jacob Ethan 202126-Jul-21 1:12 
QuestionRe: Caret problem Pin
CHill608-Jul-21 23:06
mveCHill608-Jul-21 23:06 
AnswerRe: Caret problem Pin
Richard MacCutchan10-Jul-21 23:14
mveRichard MacCutchan10-Jul-21 23:14 
GeneralRe: Caret problem Pin
Uchiha Yueh11-Jul-21 2:16
Uchiha Yueh11-Jul-21 2: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 3:25
mveRichard MacCutchan11-Jul-21 3:25 
GeneralRe: Caret problem Pin
Dave Kreskowiak11-Jul-21 6:43
mveDave Kreskowiak11-Jul-21 6:43 
Questionretrieve the group header and descriptions(top and bottom) Pin
JR2128-Jun-21 0:48
JR2128-Jun-21 0:48 
QuestionRe: retrieve the group header and descriptions(top and bottom) Pin
JR21217-Jun-21 20:45
JR21217-Jun-21 20:45 
AnswerRe: retrieve the group header and descriptions(top and bottom) Pin
Richard MacCutchan17-Jun-21 22:31
mveRichard MacCutchan17-Jun-21 22:31 
GeneralRe: retrieve the group header and descriptions(top and bottom) Pin
JR21218-Jun-21 0:20
JR21218-Jun-21 0:20 
GeneralRe: retrieve the group header and descriptions(top and bottom) Pin
Richard MacCutchan18-Jun-21 1:15
mveRichard MacCutchan18-Jun-21 1:15 
GeneralRe: retrieve the group header and descriptions(top and bottom) Pin
JR21218-Jun-21 19:17
JR21218-Jun-21 19:17 
GeneralRe: retrieve the group header and descriptions(top and bottom) Pin
Richard MacCutchan18-Jun-21 23:13
mveRichard MacCutchan18-Jun-21 23:13 
GeneralRe: retrieve the group header and descriptions(top and bottom) Pin
JR21219-Jun-21 7:23
JR21219-Jun-21 7:23 
GeneralRe: retrieve the group header and descriptions(top and bottom) Pin
Richard MacCutchan19-Jun-21 7:52
mveRichard MacCutchan19-Jun-21 7:52 
QuestionListview collapse/expand icon Pin
JR2127-Jun-21 20:12
JR2127-Jun-21 20:12 
Questioncalculator Pin
lefa mokoena27-May-21 3:16
lefa mokoena27-May-21 3:16 
AnswerRe: calculator Pin
Richard Deeming27-May-21 4:04
mveRichard Deeming27-May-21 4:04 
QuestionAlign icon to the center in ListSubItem ListView VB6 Pin
Sal Sal19-May-21 4:41
Sal Sal19-May-21 4:41 
QuestionRe: Align icon to the center in ListSubItem ListView VB6 Pin
CHill6021-May-21 3:58
mveCHill6021-May-21 3:58 
AnswerRe: Align icon to the center in ListSubItem ListView VB6 Pin
Sal Sal21-May-21 5:00
Sal Sal21-May-21 5: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.