Extension Attributes

May 2, 2008 at 3:16 PM
I am hoping that someone can assist me with this...
I am trying to update extensionattribute2 in A.D. under the Exchange custom attributes to the following

http://servername/example/whatever/Firstname 'SPACE' Lastname.jpg

So, it would be a standard URL to different JPG's that are named users first name SPACE users last name dot JPG
I have tried to use the variable %'Firstname'% %'sn"% but it errors out. Anyone have any ideas?

Thanks, Chris.
May 13, 2008 at 7:22 PM
Hey Chris,

Isn't a space represented by %20 ?  So yours might be %'Firstname'%%20%'sn'%...or some type of variant perhaps.  I'm just taking a stab in the dark.  I haven't tried it in my environment.  Just throwing some crap at the wall...

Good luck!
Jul 16, 2008 at 9:25 AM
Edited Jul 16, 2008 at 9:26 AM

i've nearly the same problem.
I would like to update a path like you, only with firstname.lastname.jpg. For this you can use for example %'sAMAccountName'%.jpg.
It errors out, too. I've tested a few times and find out, that the slash is the problem. If I don't have a slash in this attribute it works without an error.

Does anyone have a solution?

Mar 26, 2009 at 2:24 PM


I also have problem with the slash syntax. I am trying to update attribute with a string https://servername/path/%'givenName'%.%'sn'%.jpg and it fails. when I put space / %'givenName'%.%'sn'%.jpg then it works. 

RFC4517 http://www.faqs.org/rfcs/rfc4517.html states that it should be represented with %x2F
SLASH = %x2F ; forward slash ("/")

but when I use %x2F%'givenName'%.%'sn'%.jpg I get value x2FgivenName.LastName.jpg

So obviously ADmodify doesn't have full implementation of LDAP syntax. 

Sep 23, 2010 at 3:14 PM

Here is what I used and it worked fine:  It seems forward slashes are ok, except when coming before % signs.  I had to use another forward slash to escape my %20 (space) and another forward slash to escape my forward slash before the givenName's first % sign.

https://servername/My/%20Pictures//%'givenName'%.%'sn'%.jpg = https://servername/My%20Pictures/firstname.lastname.jpg