pisit38
Novice

About to escape semicolon in Connection String

I possible to escape semicolon in connection String.

For example, I have a username: test123, Password: test;123 

when this user connects I get error "24404 Authentication with server failed".

Any solution to solve this problem

0 Kudos
Reply
7 Replies
Not applicable

Re: About to escape semicolon in Connection String

Hi pist38,

 

Can you try to enclose the values in curly braces {}

E.G. Pwd={test;123}

 

-Sello
0 Kudos
Reply
Luyanda
Apprentice

Re: About to escape semicolon in Connection String

Hi Pisit38,


 


Please check the connection string that you have set up and make sure the information is correct, credentials could be configured incorrectly.


Please follow the link below:


http://community.k2.com/t5/K2-Blackpearl-Forum-Posts/24404-Authentication-with-server-failed/td-p/85...


 


You can also check out this article post:


http://community.k2.com/t5/K2-blackpearl-Articles/Cached-User-Credentials-Causing-24404-Authenticati...


 


Kind Regards


Luyanda

0 Kudos
Reply
pisit38
Novice

Re: About to escape semicolon in Connection String

Still not work I use K2 with .Net 

For example 

Password="d]h;psv,88"

But when I put {} 

connection string see Password="{d]h;psv,88}"

that make passwork incorrect 

0 Kudos
Reply
pisit38
Novice

Re: About to escape semicolon in Connection String

For example connectString = Integrated=True;IsPrimaryLogin=True;Authenticate=True;EncryptedPassword=False;Host=xxx.xxxx.xxx;Port=5252;SecurityLabelName=K2;WindowsDomain=xxx;UserID=xxx;Password=d]h;psv,88"
so I have the problem with Password=d]h;psv,88 becasue ;
0 Kudos
Reply
Not applicable

Re: About to escape semicolon in Connection String

How about encapsulating your password in single quotes:

 

Password='d]h;psv,88';
0 Kudos
Reply
khanh1
Apprentice

Re: About to escape semicolon in Connection String

Hi,


 


Out of curiousity, are you try to open a connection/impersonate another user via K2 APIs? I believe semicolons are reserved characters. I have seen something similar in the past when password containing semicolon (;), comma (,) and/or equal sign (=) are not supported. Perhaps, this KB might help, help.k2.com/kb002248.


 


 

0 Kudos
Reply
pisit38
Novice

Re: About to escape semicolon in Connection String

Right now this problem has solved, thank you for your help

0 Kudos
Reply