Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Knowledge Partner
Knowledge Partner
304 views

Re: how to remove the _ in between xxxx_yyy

On 7/31/2012 5:06 AM, ayeungied wrote:
>
> the sAMAccountName = xxxx_yyy
>
> I need to create a proxyAddress as
>
> ProxyAddresses = SMTP:xxxxyyy@abc.com.
>
> How to acheive it?
>
> Thanks & Regards,


So are you mail enabling the user with the Exchange powershells and
service built into the driver? If so you will get an SMTP: entry already.

Upper case SMTP vs lower case smtp: means primary in these fields.

So you would want to loop over the values in AD and remove any existing
SMTP: values, since they are very Highlander'ish in AD and there can be
only one.

<do-for-each>
<arg-node-set>
<token-query class-name="User">
<arg-dn>
<token-text
xml:space="preserve">Cn=user,ou=users,dc=doman,dc=com</token-text>
</arg-dn>
<arg-string>
<token-text xml:space="preserve">proxyAddresses</token-text>
</arg-string>
</token-query>
</arg-node-set>
<arg-actions>
<do-if>
<arg-conditions>
<and>
<if-local-variable mode="regex" name="current-node"
op="equal">^SMTP:</if-local-variable>
</and>
</arg-conditions>
<arg-actions>
<do-remove-dest-attr-value class-name="User" name="proxyAddresses">
<arg-value type="string">
<token-local-variable name="current-node"/>
</arg-value>
</do-remove-dest-attr-value>
</arg-actions>
<arg-actions/>
</do-if>
</arg-actions>
</do-for-each>

Then I am not sure if your issue is just removing underscores? If so,
it could be as simple as:

<do-add-dest-attr-value class-name="User" name="proxyAddresses">
<arg-value type="string">
<token-replace-all regex="_" replace-with="">
<token-dest-attr class-name="User" name="sAMAccountName"/>
</token-replace-all>
</arg-value>
</do-add-dest-attr-value>



Labels (1)
0 Likes
7 Replies
wcscis Absent Member.
Absent Member.

Re: how to remove the _ in between xxxx_yyy

I also find it best to do this on the publisher channel in response to Exchange provisioning the
mailbox itself. I've found that to be a more stable solution in the long run.


On 7/31/2012 9:26 PM, ayeungied wrote:
>
> Geoffc,
>
> Thank you for the codings.
>
> Regards,
>
> Agnes
>
>


0 Likes
Knowledge Partner
Knowledge Partner

Re: how to remove the _ in between xxxx_yyy

On 9/5/2012 12:17 PM, Will Schneider wrote:
> I also find it best to do this on the publisher channel in response to
> Exchange provisioning the mailbox itself. I've found that to be a more
> stable solution in the long run.


Why?

> On 7/31/2012 9:26 PM, ayeungied wrote:
>>
>> Geoffc,
>>
>> Thank you for the codings.
>>
>> Regards,
>>
>> Agnes
>>
>>

>


0 Likes
Highlighted
wcscis Absent Member.
Absent Member.

Re: how to remove the _ in between xxxx_yyy

If you fight with exchange, exchange will win.
If you write homeMDB, wait for Exchange to do its thing, then respond on the publisher channel when
exchange sets the email address then exchange has completed its processes and you are free to
manipulate things at that point.

I actually did a presentation at brainshare on this back about 5 ish years ago if someone has an
archive of presentations. Had a cool graphic that showed it all.

On 9/5/2012 11:20 AM, Geoffrey Carman wrote:
> On 9/5/2012 12:17 PM, Will Schneider wrote:
>> I also find it best to do this on the publisher channel in response to
>> Exchange provisioning the mailbox itself. I've found that to be a more
>> stable solution in the long run.

>
> Why?
>
>> On 7/31/2012 9:26 PM, ayeungied wrote:
>>>
>>> Geoffc,
>>>
>>> Thank you for the codings.
>>>
>>> Regards,
>>>
>>> Agnes
>>>
>>>

>>

>


0 Likes
Knowledge Partner
Knowledge Partner

Re: how to remove the _ in between xxxx_yyy

On 9/5/2012 12:23 PM, Will Schneider wrote:
> If you fight with exchange, exchange will win.
> If you write homeMDB, wait for Exchange to do its thing, then respond on
> the publisher channel when exchange sets the email address then exchange
> has completed its processes and you are free to manipulate things at
> that point.
> I actually did a presentation at brainshare on this back about 5 ish


Oh sure, go name dropping.... "When I presented at BS"....

Let me quote 17 of my articles to counter balance that.

I am feeling like headed, must be the lack of irony in my diet?

More seriously, I see what you mean. I think I read that differently my
first time around. (I read it as OTP, you mean ITP, my mistake).


> years ago if someone has an archive of presentations. Had a cool
> graphic that showed it all.
>
> On 9/5/2012 11:20 AM, Geoffrey Carman wrote:
>> On 9/5/2012 12:17 PM, Will Schneider wrote:
>>> I also find it best to do this on the publisher channel in response to
>>> Exchange provisioning the mailbox itself. I've found that to be a more
>>> stable solution in the long run.

>>
>> Why?
>>
>>> On 7/31/2012 9:26 PM, ayeungied wrote:
>>>>
>>>> Geoffc,
>>>>
>>>> Thank you for the codings.
>>>>
>>>> Regards,
>>>>
>>>> Agnes
>>>>
>>>>
>>>

>>

>


0 Likes
wcscis Absent Member.
Absent Member.

Re: how to remove the _ in between xxxx_yyy

Actually I do it in the pub event transform.
And if you can drop articles why can't I drop BS presentation? 🙂

On 9/5/2012 12:05 PM, Geoffrey Carman wrote:
> On 9/5/2012 12:23 PM, Will Schneider wrote:
>> If you fight with exchange, exchange will win.
>> If you write homeMDB, wait for Exchange to do its thing, then respond on
>> the publisher channel when exchange sets the email address then exchange
>> has completed its processes and you are free to manipulate things at
>> that point.
>> I actually did a presentation at brainshare on this back about 5 ish

>
> Oh sure, go name dropping.... "When I presented at BS"....
>
> Let me quote 17 of my articles to counter balance that.
>
> I am feeling like headed, must be the lack of irony in my diet?
>
> More seriously, I see what you mean. I think I read that differently my first time around. (I read
> it as OTP, you mean ITP, my mistake).
>
>
>> years ago if someone has an archive of presentations. Had a cool
>> graphic that showed it all.
>>
>> On 9/5/2012 11:20 AM, Geoffrey Carman wrote:
>>> On 9/5/2012 12:17 PM, Will Schneider wrote:
>>>> I also find it best to do this on the publisher channel in response to
>>>> Exchange provisioning the mailbox itself. I've found that to be a more
>>>> stable solution in the long run.
>>>
>>> Why?
>>>
>>>> On 7/31/2012 9:26 PM, ayeungied wrote:
>>>>>
>>>>> Geoffc,
>>>>>
>>>>> Thank you for the codings.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Agnes
>>>>>
>>>>>
>>>>
>>>

>>

>


0 Likes
Knowledge Partner
Knowledge Partner

Re: how to remove the _ in between xxxx_yyy

On 9/5/2012 1:57 PM, Will Schneider wrote:
> Actually I do it in the pub event transform.


Ah, so you are not reacting to the status doc, you are eventing on the
attribute change in AD? I think I really did misunderstand your
thinking there.

> And if you can drop articles why can't I drop BS presentation? 🙂


Because! Just because I say so?

> On 9/5/2012 12:05 PM, Geoffrey Carman wrote:
>> On 9/5/2012 12:23 PM, Will Schneider wrote:
>>> If you fight with exchange, exchange will win.
>>> If you write homeMDB, wait for Exchange to do its thing, then respond on
>>> the publisher channel when exchange sets the email address then exchange
>>> has completed its processes and you are free to manipulate things at
>>> that point.
>>> I actually did a presentation at brainshare on this back about 5 ish

>>
>> Oh sure, go name dropping.... "When I presented at BS"....
>>
>> Let me quote 17 of my articles to counter balance that.
>>
>> I am feeling like headed, must be the lack of irony in my diet?
>>
>> More seriously, I see what you mean. I think I read that differently
>> my first time around. (I read
>> it as OTP, you mean ITP, my mistake).
>>
>>
>>> years ago if someone has an archive of presentations. Had a cool
>>> graphic that showed it all.
>>>
>>> On 9/5/2012 11:20 AM, Geoffrey Carman wrote:
>>>> On 9/5/2012 12:17 PM, Will Schneider wrote:
>>>>> I also find it best to do this on the publisher channel in response to
>>>>> Exchange provisioning the mailbox itself. I've found that to be a
>>>>> more
>>>>> stable solution in the long run.
>>>>
>>>> Why?
>>>>
>>>>> On 7/31/2012 9:26 PM, ayeungied wrote:
>>>>>>
>>>>>> Geoffc,
>>>>>>
>>>>>> Thank you for the codings.
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Agnes
>>>>>>
>>>>>>
>>>>>
>>>>
>>>

>>

>


0 Likes
wcscis Absent Member.
Absent Member.

Re: how to remove the _ in between xxxx_yyy

Exactly. It has worked well for me for Exchange 2003, 2007, and 2010.
It is even more important if your public email addresses are different from your exchange set ones.


On 9/5/2012 12:59 PM, Geoffrey Carman wrote:
> On 9/5/2012 1:57 PM, Will Schneider wrote:
>> Actually I do it in the pub event transform.

>
> Ah, so you are not reacting to the status doc, you are eventing on the attribute change in AD? I
> think I really did misunderstand your thinking there.
>
>> And if you can drop articles why can't I drop BS presentation? 🙂

>
> Because! Just because I say so?
>
>> On 9/5/2012 12:05 PM, Geoffrey Carman wrote:
>>> On 9/5/2012 12:23 PM, Will Schneider wrote:
>>>> If you fight with exchange, exchange will win.
>>>> If you write homeMDB, wait for Exchange to do its thing, then respond on
>>>> the publisher channel when exchange sets the email address then exchange
>>>> has completed its processes and you are free to manipulate things at
>>>> that point.
>>>> I actually did a presentation at brainshare on this back about 5 ish
>>>
>>> Oh sure, go name dropping.... "When I presented at BS"....
>>>
>>> Let me quote 17 of my articles to counter balance that.
>>>
>>> I am feeling like headed, must be the lack of irony in my diet?
>>>
>>> More seriously, I see what you mean. I think I read that differently
>>> my first time around. (I read
>>> it as OTP, you mean ITP, my mistake).
>>>
>>>
>>>> years ago if someone has an archive of presentations. Had a cool
>>>> graphic that showed it all.
>>>>
>>>> On 9/5/2012 11:20 AM, Geoffrey Carman wrote:
>>>>> On 9/5/2012 12:17 PM, Will Schneider wrote:
>>>>>> I also find it best to do this on the publisher channel in response to
>>>>>> Exchange provisioning the mailbox itself. I've found that to be a
>>>>>> more
>>>>>> stable solution in the long run.
>>>>>
>>>>> Why?
>>>>>
>>>>>> On 7/31/2012 9:26 PM, ayeungied wrote:
>>>>>>>
>>>>>>> Geoffc,
>>>>>>>
>>>>>>> Thank you for the codings.
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Agnes
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>

>>

>


0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.