Jump to content

Recommended Posts

Posted

I have ldap connection ...

Where I gave username =sbc/abhiram
And password = stich

Those r administration I'd and password

Now when I go through the authentication. ..I am getting sbc/myname...which is not going through the process...I just need my name... not need domain name... How can I trim username in ldap connection

Posted

user this reg ex

 

([a-zA-Z_\-0-9]+)[\\@]{0,1}([a-zA-Z_\-0-9]+){0,1}

Posted

user this reg ex

([a-zA-Z_\-0-9]+)[\\@]{0,1}([a-zA-Z_\-0-9]+){0,1}

what..does that really work... I am talking on c# ...not inhtml
Posted

Can you post ur code and ask what you are trying to do? someone here can help you if you post the code

Posted

username = username.Substring(username.IndexOf(@"/") + 1);

 

 

username string loninchi domain name thiseyyali ante idi work avuthundi bhayya. Not sure if this is what you are asking for.

×
×
  • Create New...