cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling SNC on SAP Server

Former Member
0 Kudos

I am trying to enable SNC on SAP Server. I have downloaded the SAP Cryptographic library and installed it as per in the instructions in http://help.sap.com/saphelp_erp2004/helpdata/en/96/709b3ad94e8a3de10000000a11402f/frameset.htm

Using STRUST transaction I created a PSE for SNC.

I have modified with the instance profile (using RZ10 transation) and specified the following values

snc/enable - 1

snc/accept_insecure_rfc -1

snc/accept_insecure_gui - 0

snc/accept_insecure_cpic -1

snc/permit_insecure_start -1

snc/data_protection/min - 2

snc/extid_login_diag -1

snc/extid_login_rfc - 1

and restarted the SAP Server.

I got the following error

-


trc file: "dev_w7", trc level: 1, release: "640"

-


*

  • ACTIVE TRACE LEVEL 1

  • ACTIVE TRACE COMPONENTS all, M

*

B

B Fri Nov 16 18:44:31 2007

B create_con (con_name=R/3)

B Loading DB library 'C:\usr\sap\EUC\SYS\exe\run\dbmssslib.dll' ...

B Library 'C:\usr\sap\EUC\SYS\exe\run\dbmssslib.dll' loaded

B Version of 'C:\usr\sap\EUC\SYS\exe\run\dbmssslib.dll' is "640.00", patchlevel (0.43)

B New connection 0 created

M systemid 560 (PC with Windows NT)

M relno 6400

M patchlevel 0

M patchno 43

M intno 20020600

M make: multithreaded, Unicode

M pid 5840

M

M ***LOG Q0Q=> tskh_init, WPStart (Workproc 7 5840) [dpxxdisp.c 1160]

I MtxInit: -2 0 0

M DpSysAdmExtCreate: ABAP is active

M DpSysAdmExtCreate: JAVA is not active

M DpShMCreate: sizeof(wp_adm) 10528 (1316)

M DpShMCreate: sizeof(tm_adm) 2780232 (13832)

M DpShMCreate: sizeof(wp_ca_adm) 24000 (80)

M DpShMCreate: sizeof(appc_ca_adm) 8000 (80)

M DpShMCreate: sizeof(comm_adm) 290000 (580)

M DpShMCreate: sizeof(vmc_adm) 0 (372)

M DpShMCreate: sizeof(wall_adm) (38456/34360/64/184)

M DpShMCreate: SHM_DP_ADM_KEY (addr: 05F90040, size: 3192688)

M DpShMCreate: allocated sys_adm at 05F90040

M DpShMCreate: allocated wp_adm at 05F91B58

M DpShMCreate: allocated tm_adm_list at 05F94478

M DpShMCreate: allocated tm_adm at 05F944A0

M DpShMCreate: allocated wp_ca_adm at 0623B0E8

M DpShMCreate: allocated appc_ca_adm at 06240EA8

M DpShMCreate: allocated comm_adm_list at 06242DE8

M DpShMCreate: allocated comm_adm at 06242E00

M DpShMCreate: allocated vmc_adm_list at 06289AD0

M DpShMCreate: system runs without vmc_adm

M DpShMCreate: allocated ca_info at 06289AF8

M DpShMCreate: allocated wall_adm at 06289B00

X EmInit: MmSetImplementation( 2 ).

X <ES> client 7 initializing ....

X Using implementation flat

M <EsNT> Memory Reset disabled as NT default

X ES initialized.

M

M Fri Nov 16 18:44:32 2007

M calling db_connect ...

C Thank You for using the SLOLEDB-interface

C Using dynamic link library 'C:\usr\sap\EUC\SYS\exe\run\dbmssslib.dll'

C dbmssslib.dll patch info

C patchlevel 0

C patchno 43

C patchcomment View with literal containing (0x60) (786638)

C np:(local) connection used on SAP50UNI

C Failed to initialize provider SQLNCLI. See note #734034 for more information.

C Using provider SQLOLEDB instead.

C OpenOledbConnection: Failed to set MARS property.

C

C Fri Nov 16 18:44:33 2007

C Provider Release:08.10.1830

C Failed to initialize provider SQLNCLI. See note #734034 for more information.

C Using provider SQLOLEDB instead.

C OpenOledbConnection: Failed to set MARS property.

C

C Fri Nov 16 18:44:44 2007

C Cache sizes: header 68 bytes, 20000 names (31520000 bytes), 1000 dynamic statements (5672000 bytes), total 37192068 bytes

C Using shared procedure name cache SAP50UNI_EUCEUC_EUC_MEM initialized by another process.

C Connected to db server : [SAP50UNI] server_used : [np:(local)], dbname: EUC, dbuser: euc

C pn_id:SAP50UNI_EUCEUC_EUC

C Not using MARS (on sql 8.0)

B Connection 0 opened

B Wp Hdl ConName ConId ConState TX PRM RCT TIM MAX OPT Date Time DBHost

B 000 000 R/3 000000000 ACTIVE NO YES NO 000 255 255 20071116 184432 SAP50UNI

C The IRow interface is supported by this OLEDB provider

M db_connect o.k.

I

I Fri Nov 16 18:44:52 2007

I MtxInit: 7 0 0

M SHM_PRES_BUF (addr: 0A650040, size: 4400000)

M SHM_ROLL_AREA (addr: 5F030040, size: 159744000)

M SHM_PAGING_AREA (addr: 0AA90040, size: 72089600)

M SHM_ROLL_ADM (addr: 0EF60040, size: 1595440)

M SHM_PAGING_ADM (addr: 0F0F0040, size: 525344)

M ThCreateNoBuffer allocated 540152 bytes for 1000 entries at 0F180040

M ThCreateNoBuffer index size: 3000 elems

M ThCreateVBAdm allocated 12160 bytes (50 server) at 08060040

X EmInit: MmSetImplementation( 2 ).

X <ES> client 7 initializing ....

X Using implementation flat

X ES initialized.

B db_con_shm_ini: WP_ID = 7, WP_CNT = 8

B dbtbxbuf: Buffer TABL (addr: 140600C8, size: 30000000, end: 15CFC448)

B dbtbxbuf: Buffer TABLP (addr: 15D000C8, size: 10240000, end: 166C40C8)

B dbexpbuf: Buffer EIBUF (addr: 166D00D0, size: 4194304, end: 16AD00D0)

B dbexpbuf: Buffer ESM (addr: 16AE00D0, size: 4194304, end: 16EE00D0)

B dbexpbuf: Buffer CUA (addr: 0FC300D0, size: 3072000, end: 0FF1E0D0)

B dbexpbuf: Buffer OTR (addr: 16EF00D0, size: 4194304, end: 172F00D0)

M rdisp/reinitialize_code_page -> 0

M icm/accept_remote_trace_level -> 0

M rdisp/no_hooks_for_sqlbreak -> 0

N SncInit(): Initializing Secure Network Communication (SNC)

N PC with Windows NT (mt,ascii,SAP_UC/size_t/void* = 16/32/32)

N SncInit(): found snc/data_protection/max=3, using 3 (Privacy Level)

N SncInit(): found snc/data_protection/min=2, using 2 (Integrity Level)

N SncInit(): found snc/data_protection/use=9, using 3 (Privacy Level)

N SncInit(): Trying builtin default as a

N gssapi library name: "sncgss32.dll".

<b>N SncInit(): snc/gssapi_lib UNDEFINED in profile!

N YOU DEFINITELY SHOULD SET snc/gssapi_lib !!

<b>M *** ERROR => DlLoadLib: LoadLibrary(sncgss32.dll) Error 126 [dlnt.c 237]

M Error 126 = "The specified module could not be found."

N *** ERROR => SncPDLInit(): DlLoadLib("sncgss32.dll")=DLENOACCESS

N [sncxxdl.0340]*** ERROR => SncPDLInit()==SNCERR_INIT, Adapter (#0) sncgss32.dll not loaded</b></b>

N [sncxxdl.0604]<<- SncInit()==SNCERR_INIT

N sec_avail = "false"

M ***LOG R19=> ThSncInit, SncInitU ( SNC-000001) [thxxsnc.c 223]

M *** ERROR => ThSncInit: SncInitU (SNCERR_INIT) [thxxsnc.c 225]

M in_ThErrHandle: 1

M *** ERROR => SncInitU (step 1, th_errno 44, action 3, level 1) [thxxhead.c 9413]

M

M Info for wp 7

M

M stat = 4

M reqtype = 6

M act_reqtype = -1

M rq_info = 0

M tid = -1

M mode = 255

M len = -1

M rq_id = 65535

M rq_source = 255

M last_tid = 0

M last_mode = 0

M int_checked_resource(RFC) = 0

M ext_checked_resource(RFC) = 0

M int_checked_resource(HTTP) = 0

M ext_checked_resource(HTTP) = 0

M report = > <

M action = 0

M tab_name = > <

M PfStatDisconnect: disconnect statistics

M Entering TH_CALLHOOKS

M ThCallHooks: call hook >SAP-Trace buffer write< for event BEFORE_DUMP

M TrThHookFunc: called for WP dump

M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP

M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c 730]

M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c 252]

M Entering ThSetStatError

M Entering ThReadDetachMode

M call ThrShutDown (1)...

M ***LOG Q02=> wp_halt, WPStop (Workproc 7 5840) [dpnttool.c 357]

I am unable to connect to SAP Server using SAP GUI.

Any help on this is appreciated.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

markus_doehr2
Active Contributor
0 Kudos

you have two problems (read the log):

> C Failed to initialize provider SQLNCLI. See note

> #734034 for more information.

> C Using provider SQLOLEDB instead.

> C OpenOledbConnection: Failed to set MARS property.

Check the mentioned note.

> SncInit(): Trying builtin default as a

> gssapi library name: "sncgss32.dll".

> ncInit(): snc/gssapi_lib UNDEFINED in profile!

> N YOU DEFINITELY SHOULD SET snc/gssapi_lib !!

> <b>M *** ERROR => DlLoadLib:

> LoadLibrary(sncgss32.dll) Error 126 [dlnt.c

> 237]

> Error 126 = "The specified module could not be

> found."

> *** ERROR => SncPDLInit():

> DlLoadLib("sncgss32.dll")=DLENOACCESS

> [sncxxdl.0340]*** ERROR =>

> SncPDLInit()==SNCERR_INIT, Adapter (#0) sncgss32.dll

> not loaded</b></b>

> N [sncxxdl.0604]<<- SncInit()==SNCERR_INIT

> N sec_avail = "false"

> M ***LOG R19=> ThSncInit, SncInitU ( SNC-000001)

> [thxxsnc.c 223]

> M *** ERROR => ThSncInit: SncInitU (SNCERR_INIT)

> [thxxsnc.c 225]

> M in_ThErrHandle: 1

> M *** ERROR => SncInitU (step 1, th_errno 44, action

> 3, level 1) [thxxhead.c 9413]

the log clearly sais, what to do... what is unclear?

--

Markus