rapchik Posted May 8, 2014 Report Posted May 8, 2014 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
andhrabullet Posted May 8, 2014 Report Posted May 8, 2014 user this reg ex ([a-zA-Z_\-0-9]+)[\\@]{0,1}([a-zA-Z_\-0-9]+){0,1}
rapchik Posted May 8, 2014 Author Report Posted May 8, 2014 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
secundrabadi Posted May 8, 2014 Report Posted May 8, 2014 Can you post ur code and ask what you are trying to do? someone here can help you if you post the code
Suhaas Posted May 8, 2014 Report Posted May 8, 2014 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.
Recommended Posts