cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to register user from native android app

midhun_vp
Active Contributor
0 Kudos

Hi,

Created a user in SCC ex:midhun and activation code :123.

SUP version 2.1.3

From the android native application when I pass the credentials I am getting the error "MMS authentication failed".

But I am able to login using the SCC login credentials (supAdmina and s3pAdmin) from the application

Given below is the code I used;

try {

                                        ConnectionProperties connProps = app.getConnectionProperties();

                                        connProps.setServerName(HOST);

                                        connProps.setPortNumber(PORT);

                                        //connProps.setActivationCode(PASSWORD);

                                        PurchaseOrderApprovalDB.setApplication(app);

                                        LoginCredentials loginCredentials = new LoginCredentials(

                                                            USERNAME, PASSWORD);

                                        connProps.setLoginCredentials(loginCredentials);

                                                  if (app.getRegistrationStatus() != RegistrationStatus.REGISTERED) {

//Getting exception during the below code

                                                            app.registerApplication(600);

                                                  } else {

                                                            app.startConnection(600);

                                                  }

                                        } catch (Exception e) {

                                                  returnMsg = e.getMessage();

                                        }

I have redeployed the app several times and tested but didn't work.

Please give a solution

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184221
Contributor
0 Kudos

I assume that "supAdmina" is a spelling mistake for "supAdmin" ?

What sort of administration security are you using ? None / LDAP / AD ?

Also check that you are connecting using Messaging port number 5001 for logon and then Replication port number for synchronisation. (Unless you connecting via a Relay Server)

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01726.0213/doc/html/jne13...

Former Member
0 Kudos

Hi David,

I am using LDAP authentication, provided valid parameters in SCC and verified entered values are present in \CSI\LDAPConnection.xml also manually entered the mappings as AD Group name.

now I am able to map the role and authenticate the device(iPad) but the ldap user is not listed in Application connection tab in SCC.

Any inputs are greatly appreciated.

Regards,

SARA

Former Member
0 Kudos

David,

Thanks for your inputs.

I had overcome this by eliminating the fields activation code in coding.

Now the device is getting registered through LDAP authentication.

Regards,

Sara