cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with DCN

Former Member
0 Kudos

Hi, I get this error when executing a DCN:

Problem accessing /dcn/DCNServlet.

Reason: Authenticate user failed for user DCN in domain dbappz. Check username and/or password. The reason is Login Failed: user 'DCN@dbappz'

I know this happens because I don't have the DCN@dbappz user mapped with the logical role SUP DCN User in the SCC.

My problem is that I don't know how to make this mapping in the SCC.

In my security profile, in the Authentication section I have a PreConfiguredUserLoginModule with the DCN user but I don't know where to map this user with the DCN logical role.



In Role Mapping I don't see anything, only one other logical role.


Any ideas ?

Thanks!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Jitendra, do you need some additional info ?

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Alan,

This is very simple. Before adding any property and value to "DCN" user, open the "Properties" of existing "PreConfigureUserLoginModule" provider and copy each and every property and value set and add the same to the newly created for "DCN" user.

For existing provider roles should be

SUP Administrator,SUP Domain Administrator,SUP DCN User, SUP Push User

paste all these roles to the above screenshot.

Hope this will work.

Regards,

JK

Former Member
0 Kudos

Hi Jitendra, I didn't understand this.

I don't have a DCN User in the SCC to copy this properties.

If you need I can take more screenshots and post here.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Are you creating a new user "DCN" in  "PreConfiguredLoginUserModule"  provider?

If yes, this "DCN" user will have all privilege like admin user "supAdmin"

Maybe you can share what all you have done?

Rgrds,

JK

Former Member
0 Kudos

Yes, the new user is created in PreConfiguredLoginUserModule.

I don't know which privileges this user needs, I just want to send DCNs with this user.



Former Member
0 Kudos

Jitendra, I made a change in the PreConfiguredLoginUserModule.

In the 'Role' field instead of DCNRole I modified it to SUP DCN User.

But this didn't change anything, the error still occurs.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Alan,

If you are creating a new admin user like "supAdmin" then it should have all roles like "supAdmin".

Please try with roles detail mentioned in my first reply.

Moreover, I am not understanding how exactly you are calling DCN?

Can you please share more information what all you have tried?

Rgrds,

JK

Former Member
0 Kudos

I just want to create a user that is able to send Data Change Notifications, so the role 'SUP DCN User' should be enough, right ?

I'm calling the DCN from a Delphi Application, here is the string that I send to the server:

http://srv:8000/dcn/DCNServlet?cmd=dcn&username=DCN&password=DCN123&package=otmobile:1.0&domain=dbap...{"pkg":"dummy","messages":[{"id":"38","mbo":"Pedido","op":":upsert","cols":{"codigo":102375,"codigoRepresentante":36290,"codigoTipoPedido":0,"pedidoCliente":"hghg","codigoClienteFatura":36671,"codigoClienteEntrega":36671,"codigoClienteCompra":36671,"codigoTabelaPreco":4,"codigoMoeda":2,"codigoTipoFrete":1,"codigoViaTransporte":2,"codigoTransportadora":5550,"codigoTransportadoraRedespacho":6366,"observacaoPedido":"N,mn","desconto":65,"codigoCondicaoPagamento":2436,"pedidoRepresentante":"5665","codigoCanalVenda":0,"observacaoFaturamento":",kn","codigoFormaPagamento":2,"antecipaFaturamento":0,"dataEmissao":"2014-06-13","dataBase":"2014-06-17","codigoSituacao":0}}]}


Thank you!

midhun_vp
Active Contributor
0 Kudos

Firstly make sure it is working for supAdmin user. If that works create a new user and test.

Sample JSON format:

http://localhost:8000/dcn/DCNServlet?cmd=dcn&username=supAdmin&password=

s3pAdmin&package=testdatetime:1.0&domain=default&dcn_request=

{"pkg":"testdatetime","messages":[{"id":"1","mbo":"TestDateTimeStamp","op":":upsert",

"ppm":null,"cols":{"testTimestamp":"2009-08-09T12:04:05","testDate":"2009-08-09","c_int":"0",

"testDateTime":"2009-08-09T12:04:05","testSmalldt":"2009-08-09T12:04:05","testTime":"12:04:05"},

}]}

Midhun VP