0 votes

Hi. I am create a Custom Commands. The Custom Commands will run a powshell by user.

Is it possible for me to require the user to verify the passwordagain when performing these Custom Commands?

by (90 points)
0

Hello,

Sorry for the confusion, but we are not sure what exactly you mean. Could you, please, describe the desired behaviour in all the possible details with live examples?

0

Hi I use Custom Commands to let users set B domain passwords. User is login Adaxes use A Domain. We do not allow users to set the same password as "A domain"

I tried to verify "A DOMAIN" by entering the password to confirm whether the password is the same

擷取.PNG

1 Answer

0 votes
by (233k points)

Hello,

Thank you for the provided details. Unfortunately, there is no possibility to validate passwords the way you need because Active Directory does not allow retrieving passwords of existing users. This behaviour is by design and is not related to Adaxes.

0

Thanks for your reply, I did it using the method below. share with everyone.

image.png

# The condition is met if $Context.ConditionIsMet is set to $True.

$UserName = '%sAMAccountName%'
$Password = '%param-P01%'
Function Test-ADAuthentication {
    param(
        $username,
        $password)

    (New-Object DirectoryServices.DirectoryEntry "",$username,$password).psbase.name -ne $null
}
$condition = Test-ADAuthentication -username $UserName -password $password
if ( $condition)
{
    $Context.ConditionIsMet = $True
}

image.png

0

Hello,

Thank you for sharing the details. We misunderstood your requirement. If the password to validate is provided (e. g. in a parameter like you did) it is certainly possible to validate the credentials.

Related questions

0 votes
1 answer

Hi The Custom Commands edil Box Send more symbols. If type the symbols $ the will output '$ How can I fix it? Input Output

asked May 31 by will.chc.join (90 points)
0 votes
1 answer

For a custom command, I need to perform some actions, then reboot a computer, then perform some more. How can we handle the reboot so the actions continue once the computer is back up and ready? Thanks

asked May 17 by jcrook (60 points)
0 votes
1 answer

Hey Support, i hope you can help me with this and how to build it in Adaxes. I want to have a one click action, like a custom command, in the web interface that ... (static) group B Update the members dynamic groups C & D Thanks for your assistance, Markus

asked Nov 29, 2021 by roppiffm (110 points)
0 votes
1 answer

Hi Is there any possibility to add groups to "Operations" Panel, especially custom commands, in the WebGUI on the user like we can ... Custom Commands Offboarding Offboarding Initiation Offboarding Initiation Fasttrack Notifications Update Mobile Contract

asked Jul 30, 2021 by m.car (80 points)
0 votes
1 answer

Hi there, i've a custom command with multiple powershell scripts (for clearance reasons). If for example the frist script produces an error i Write an Error but the next ... tried with an simple exit 1; I only Write-Errors on issues. Kind regards, Constantin

asked Jul 23, 2021 by Constey (190 points)
2,880 questions
2,600 answers
6,751 comments
117,192 users