0 votes

Hi - do you have a quick way to return an objects CN string formatted in a way suitable for appending to a URL link?

For example if I want to send an email to someone with a direct link to an object I can embed the following:

http://adaxes/SelfService/ViewObject.as ... oot,DC=net[/b]

but this would need to be encoded as:

http://adaxes/SelfService/ViewObject.as ... 2cDC%3dnet[/b]

Or is there a way of using something simple like the GUID as a viewobject.aspx variable?

by (1.6k points)
0

We had been creating direct links into Adaxes from several different systems using an object's GUID and the /ViewObject.aspx?guid= URL format up until we upgraded to Adaxes 2023. Now when we try to navigate to that URL we get a 404 error. Is there an alternative URL to use for direct linking to an object?

0

Hello,

The URLs with that format do not work in Adaxes 2023. The correct formats are as follows:

http://adaxes.domain.com/Adaxes/admin#/Browse/<ObjectDN>

http://adaxes.domain.com/Adaxes/admin#/Browse/<ObjectGUID>

In the URLs, <ObjectDN> and <ObjectGUID> represent the distinguished name the GUID accordingly. Both approaches work just fine.

1 Answer

0 votes
by (216k points)

Hello,

You can use a GUID for this purpose, for example: http://adaxes.domain.com/AdaxesAdmin/Vi ... F73933E0E8.

To insert the GUID of the target object of an operation into an email template or PowerShell script, you can use the %objectGUID% value reference. For example the following text: %adm-WebInterfaceUrl%ViewObject.aspx?guid=%objectGUID%

will be replaced with: http://adaxes.domain.com/AdaxesSelfServ ... F73933E0E8

where http://adaxes.domain.com/AdaxesSelfService/ is the path to Adaxes Web Interface registered for your Adaxes service. For information on how to register an Adaxes Web Interface for your service, see Register Web Interface for Service.

0

As always - many thanks!

Out of interest, if I try to pull the GUID from a bound CN i.e.

$refObject.Get("ObjectGUID")

it returns sopmething like:

2 150 200 56 51 20 123 96153 21 133 170 32 56 160 130

Do I have to covert this?

Thanks again - I just wish I had an IDE where I could see the variables being processed :(

0

Hello,

This is because object GUIDs are stored in AD in the form of an octet string or, in other words, a sequence of 16 bytes. To get a string representation of a GUID, you need to convert it. For example:

$objectGuidInByte = $refObject.Get("objectGUID")
$objectGuid = New-Object "System.Guid" (,$objectGuidInByte)
$objectGuidString = $objectGuid.ToString("D")

Thanks again - I just wish I had an IDE where I could see the variables being processed :(

Well, a good point, but we don't think it's ever to be implemented :)

By the way, take a look at our SDK, it has a plenty of examples and useful info to start from: http://adaxes.com/sdk/.

0

Thanks again.

re: the SDK - unfortunately, while it looks absolutely jam packed full of good code snippets etc, there's no way of searching it as a non-programmer!

Generally speaking I quite often know what I want to do, and have a fair idea how to, but the SDK site is (well) organisationed in a way that means you really have to know what you're looking for in order to find it.

This thread was a good example - I fairly much guessed I had to convert it into a different format, but didn't know from what format, to what format, and what the commands would be. If I had the ability to search the SDK site for mentions of "convert" I'm sure I would've been able to find something that gave me enough of a headsup to work it out (and I prefer to do that!).

So there you go, a new feature request - searchable SDK\Help sites!

PS I'm sure the script repository will also help. :)

0

Hello,

We are currently working on re-launching the Script Repository. Hope you'll find it useful :)

As for searchable help, actually, you have an offline copy of Adaxes SDK. It is a CHM file located in the directory where you installed Adaxes Administration Console (which is C:\Program Files\Softerra\Adaxes 3\Administration Console by default). The file name is adaxessdk.chm. It is a searchable CHM file that you can use in such cases when you don't know exactly what to search for.

Edit page for target object

Related questions

0 votes
0 answers

When usng the example publish link: &lt;a href="http://example.com/Adaxes/SelfService/#/SelfPasswordReset?ReturnUrl=http%3A%2F%2Fwebsite.com"&gt;Forgot password?&lt;/a&gt; With ADFS, ... in the reset link as the Return URL and what Adaxes returns the user to

asked Jul 6, 2020 by dgrandja (70 points)
0 votes
1 answer

Is it possible to pass up data with the URL to fill out fields on the Adaxes forms? I would like to fill in some info on the form when the Help Desk tech clicks on ... that the Help Desk tech can then edit, add to, and then complete the new user creation.

asked Jan 15, 2015 by jiambor (1.2k points)
0 votes
1 answer

I've got a scheduled agent that is attempting to export data for updated employees. When an employee record is updated, we're setting the value of the LDAP custom attribute ... ") # Release resources used by the search $userResult.Dispose() return } ...

asked Oct 17, 2015 by sandramnc (870 points)
0 votes
1 answer

Currently thought we have enabled MFA on self service policy, the MFA is only prompted for self-service login, but not for 'forget password link' Is there a way when users ... link and try to reset their password, can we have mandatory MFA for this section.

asked Mar 29, 2023 by Vish539 (460 points)
0 votes
1 answer

We have implentend Adaxes in our infrastructure and users who use forget their password link via Adaxes self service portal by going thorugh the registered Q&amp;A are being prompted to ... by a specific business rule, I am unable to check this via the log

asked Mar 14, 2023 by Vish539 (460 points)
3,588 questions
3,277 answers
8,303 comments
548,090 users