Enabling EAP-AKA' both 5G and wifi using free5GC AUSF

Hello all,

I am working on enabling EAP-AKA’ both 5G and wifi using free5GC AUSF.
So a UE is connecting to a wifi AP and the AP is sending an authentication message to AUSF.

When I tried to connect a UE from wifi AP to AUSF using EAP-AKA’, I got the following error. Could you please look at those errors and let me know if you know the reason if you have any moment. I didn’t modify any code in AUSF so it’s an original code from the official source. Thank you in advance.

ausf             | 2022-09-13T20:37:53Z [INFO][AUSF][UeAuthPost] HandleUeAuthPostRequest
ausf             | 2022-09-13T20:37:53Z [INFO][AUSF][UeAuthPost] Serving network authorized
nrf              | 2022-09-13T20:37:53Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
nrf              | 2022-09-13T20:37:53Z [INFO][NRF][GIN] | 200 |   10.100.200.11 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=AUSF&service-names=nudm-ueau&target-nf-type=UDM |
udm              | 2022-09-13T20:37:53Z [INFO][UDM][UEAU] Handle GenerateAuthDataRequest
udm              | 2022-09-13T20:37:53Z [INFO][UDM][Suci] suciPart: [suci 0 001 01 0000 0 0 9990000001]
udm              | 2022-09-13T20:37:53Z [INFO][UDM][Suci] scheme 0
udm              | 2022-09-13T20:37:53Z [INFO][UDM][Suci] SUPI type is IMSI
udm              | http://nrf.free5gc.org:8000
nrf              | 2022-09-13T20:37:53Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
nrf              | 2022-09-13T20:37:53Z [INFO][NRF][GIN] | 200 |    10.100.200.7 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=UDM&target-nf-type=UDR |
udr              | 2022-09-13T20:37:53Z [INFO][UDR][DRepo] Handle QueryAuthSubsData
mongodb          | {"t":{"$date":"2022-09-13T20:37:53.263+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"10.100.200.8:36574","uuid":"4cffa958-39bb-45c9-8cf0-86df14ff3f1d","connectionId":12,"connectionCount":12}}
mongodb          | {"t":{"$date":"2022-09-13T20:37:53.264+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn12","msg":"client metadata","attr":{"remote":"10.100.200.8:36574","client":"conn12","doc":{"driver":{"name":"mongo-go-driver","version":"v1.8.4"},"os":{"type":"linux","architecture":"amd64"},"platform":"go1.14.4"}}}
udr              | 2022-09-13T20:37:53Z [INFO][UDR][GIN] | 200 |    10.100.200.7 | GET     | /nudr-dr/v1/subscription-data/imsi-001019990000001/authentication-data/authentication-subscription |
udm              | 2022-09-13T20:37:53Z [ERRO][UDM][UEAU] opStr length is  0
udr              | 2022-09-13T20:37:53Z [INFO][UDR][DRepo] Handle ModifyAuthentication
udr              | 2022-09-13T20:37:53Z [INFO][UDR][GIN] | 204 |    10.100.200.7 | PATCH   | /nudr-dr/v1/subscription-data/imsi-001019990000001/authentication-data/authentication-subscription |
udm              | 2022-09-13T20:37:53Z [INFO][UDM][GIN] | 200 |   10.100.200.11 | POST    | /nudm-ueau/v1/suci-0-001-01-0000-0-0-9990000001/security-information/generate-auth-data |
ausf             | 2022-09-13T20:37:53Z [INFO][AUSF][UeAuthPost] Add SuciSupiPair (suci-0-001-01-0000-0-0-9990000001, imsi-001019990000001) to map.
ausf             | 2022-09-13T20:37:53Z [INFO][AUSF][UeAuthPost] Use EAP-AKA' auth method
ausf             | 2022-09-13T20:37:53Z [TRAC][AUSF][EapAkaAuth] K_aut: 607b1b25e58ac955e8207eb4e3883cf8de5dfbebf15a9fead105641b65d4c28f
ausf             | 2022-09-13T20:37:53Z [INFO][AUSF][GIN] | 201 |    10.100.200.1 | POST    | /nausf-auth/v1/ue-authentications |
ausf             | 2022-09-13T20:37:53Z [INFO][AUSF][5gAkaAuth] EapAuthComfirmRequest
ausf             | 2022-09-13T20:37:53Z [ERRO][AUSF][GIN] panic: runtime error: invalid memory address or nil pointer dereference
ausf             | goroutine 19 [running]:
ausf             | runtime/debug.Stack(0xc00020eec0, 0xbab8c0, 0x1342ec0)
ausf             | 	/usr/local/go/src/runtime/debug/stack.go:24 +0x9d
ausf             | github.com/free5gc/util/logger.ginRecover.func1.1(0xc00009bea0, 0xc00043e200)
ausf             | 	/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:212 +0x27a
ausf             | panic(0xbab8c0, 0x1342ec0)
ausf             | 	/usr/local/go/src/runtime/panic.go:969 +0x166
ausf             | github.com/free5gc/ausf/internal/sbi/producer.EapAuthComfirmRequestProcedure(0xc00049a030, 0x24, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc00044a027, ...)
ausf             | 	/go/src/free5gc/NFs/ausf/internal/sbi/producer/ue_authentication.go:405 +0x357
ausf             | github.com/free5gc/ausf/internal/sbi/producer.HandleEapAuthComfirmRequest(0xc0001192f0, 0xc000119560)
ausf             | 	/go/src/free5gc/NFs/ausf/internal/sbi/producer/ue_authentication.go:31 +0x1d2
ausf             | github.com/free5gc/ausf/internal/sbi/ueauthentication.HTTPEapAuthMethod(0xc00043e200)
ausf             | 	/go/src/free5gc/NFs/ausf/internal/sbi/ueauthentication/api_default.go:57 +0x3e9
ausf             | github.com/gin-gonic/gin.(*Context).Next(0xc00043e200)
ausf             | 	/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 +0x3b
ausf             | github.com/free5gc/util/logger.ginRecover.func1(0xc00043e200)
ausf             | 	/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:244 +0x60
ausf             | github.com/gin-gonic/gin.(*Context).Next(0xc00043e200)
ausf             | 	/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 +0x3b
ausf             | github.com/free5gc/util/logger.ginToLogrus.func1(0xc00043e200)
ausf             | 	/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:179 +0x7e
ausf             | github.com/gin-gonic/gin.(*Context).Next(0xc00043e200)
ausf             | 	/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 +0x3b
ausf             | github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00011c000, 0xc00043e200)
ausf             | 	/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:489 +0x60d
ausf             | github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00011c000, 0xddfd40, 0xc000452000, 0xc00043e100)
ausf             | 	/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:445 +0x15c
ausf             | golang.org/x/net/http2/h2c.h2cHandler.ServeHTTP(0xdd0f40, 0xc00011c000, 0xc0002d0280, 0xddfd40, 0xc000452000, 0xc00043e100)
ausf             | 	/go/pkg/mod/golang.org/x/[email protected]/http2/h2c/h2c.go:104 +0x447
ausf             | net/http.serverHandler.ServeHTTP(0xc0004ae0e0, 0xddfd40, 0xc000452000, 0xc00043e100)
ausf             | 	/usr/local/go/src/net/http/server.go:2807 +0xa3
ausf             | net/http.(*conn).serve(0xc000294000, 0xde2040, 0xc0002d0000)
ausf             | 	/usr/local/go/src/net/http/server.go:1895 +0x86c
ausf             | created by net/http.(*Server).Serve
ausf             | 	/usr/local/go/src/net/http/server.go:2933 +0x35c
ausf             | 2022-09-13T20:37:53Z [INFO][AUSF][GIN] | 500 |    10.100.200.1 | POST    | /nausf-auth/v1/ue-authentications/suci-0-001-01-0000-0-0-9990000001/eap-session |
amf              | 2022-09-13T20:37:55Z [DEBU][AMF][NGAP] SCTP read timeout
amf              | 2022-09-13T20:37:55Z [DEBU][AMF][NGAP] SCTP read timeout

Hi @limlynn,

Could you please provide the specification of your UE and wifi AP?
Thank you.

Hi, My UE is a Samsung galaxy 22, and wifi AP is an alfa network card with raspberry pi.