cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
594
Views
0
Helpful
4
Replies

Regex TMS FindME Device Templates Problem

chrisman1337
Level 1
Level 1

Hi,

 

i have a problem with a regex expression at the device templates section at TMS.

 

I want to use the first and last name, delete everything of first_name except the first letter. Then add the domain after it.

So for example: first_name is "chris". last_name is "man". For Device Address Pattern i used: {first_name['^[a-z]'\[a-z]+'='']}.{last_name}@domain.com.

The result is chris.man@domain.com.

 

So far so good. But i don´t get the expression, that only the first letter of "chris" is used. It should be c.man@domain.com

Can somebody give me a hint?

 

Kind regards

Chris Man

4 Replies 4

shawnangelo
Level 1
Level 1

Question, is c.man@domain the actual LDAP username?

Why not just match based on that as opposed to first_name last_name?

{username}@domain.com

I overthought that to but our LDAP name is for example "chrism" not "cman".

Patrick Sparkman
VIP Alumni
VIP Alumni

RegEx isn't supported and won't work in any of the template patterns that create FindMe and device addresses.  Instead TMSPE uses attributes to create the various addresses, see the "Creating Address Patterns" section of the TMSPE Deployment Guide starting at the bottom of pg 31 for the different attributes that is supported and used by TMSPE.

Okay, so i can´t modify the attributes? Thats bad...

Another thing is that {email} for example does not work. It seems that this is a bug.