Guest User

Untitled

a guest
Jan 11th, 2017
843
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.08 KB | None | 0 0
  1. (0) Received Access-Request Id 12 from CLIENT_IP:19731 to SERVER_IP:1812 length 269
  2. (0) NAS-Port-Type = Wireless-802.11
  3. (0) Calling-Station-Id = "CALLING_STSTION_ID"
  4. (0) Called-Station-Id = "CALLED_STATION_ID"
  5. (0) NAS-Port-Id = "wlan2-hotspot"
  6. (0) User-Name = "447086"
  7. (0) NAS-Port = 2157969410
  8. (0) Acct-Session-Id = "80a00002"
  9. (0) Framed-IP-Address = 192.168.20.197
  10. (0) Mikrotik-Host-IP = 192.168.20.197
  11. (0) WISPr-Location-Name = "CALLED_STATION_ID"
  12. (0) CHAP-Challenge = 0x8b10938e9770a389af6667748c2c828f
  13. (0) CHAP-Password = 0x1c622737c4c16c82df6c53aa231acaa988
  14. (0) Service-Type = Login-User
  15. (0) WISPr-Logoff-URL = "http://192.168.20.1/logout"
  16. (0) NAS-Identifier = "MikroTik"
  17. (0) NAS-IP-Address = 192.168.0.123
  18. (0) # Executing section authorize from file /usr/local/etc/raddb/sites-enabled/default
  19. (0) authorize {
  20. (0) policy filter_username {
  21. (0) if (&User-Name) {
  22. (0) if (&User-Name) -> TRUE
  23. (0) if (&User-Name) {
  24. (0) if (&User-Name =~ / /) {
  25. (0) if (&User-Name =~ / /) -> FALSE
  26. (0) if (&User-Name =~ /@[^@]*@/ ) {
  27. (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
  28. (0) if (&User-Name =~ /\.\./ ) {
  29. (0) if (&User-Name =~ /\.\./ ) -> FALSE
  30. (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
  31. (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE
  32. (0) if (&User-Name =~ /\.$/) {
  33. (0) if (&User-Name =~ /\.$/) -> FALSE
  34. (0) if (&User-Name =~ /@\./) {
  35. (0) if (&User-Name =~ /@\./) -> FALSE
  36. (0) } # if (&User-Name) = notfound
  37. (0) } # policy filter_username = notfound
  38. (0) [preprocess] = ok
  39. (0) chap: &control:Auth-Type := CHAP
  40. (0) [chap] = ok
  41. (0) [mschap] = noop
  42. (0) [digest] = noop
  43. (0) suffix: Checking for suffix after "@"
  44. (0) suffix: No '@' in User-Name = "447086", looking up realm NULL
  45. (0) suffix: No such realm "NULL"
  46. (0) [suffix] = noop
  47. (0) eap: No EAP-Message, not doing EAP
  48. (0) [eap] = noop
  49. (0) [files] = noop
  50. (0) sql: EXPAND %{User-Name}
  51. (0) sql: --> 447086
  52. (0) sql: SQL-User-Name set to '447086'
  53. rlm_sql (sql): Reserved connection (1)
  54. (0) sql: EXPAND SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id
  55. (0) sql: --> SELECT id, username, attribute, value, op FROM radcheck WHERE username = '447086' ORDER BY id
  56. (0) sql: Executing select query: SELECT id, username, attribute, value, op FROM radcheck WHERE username = '447086' ORDER BY id
  57. (0) sql: User found in radcheck table
  58. (0) sql: Conditional check items matched, merging assignment check items
  59. (0) sql: Cleartext-Password := "d1lMP"
  60. (0) sql: Called-Station-Id := "CALLED_STATION_ID"
  61. (0) sql: EXPAND SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id
  62. (0) sql: --> SELECT id, username, attribute, value, op FROM radreply WHERE username = '447086' ORDER BY id
  63. (0) sql: Executing select query: SELECT id, username, attribute, value, op FROM radreply WHERE username = '447086' ORDER BY id
  64. (0) sql: User found in radreply table, merging reply items
  65. (0) sql: Session-Timeout := 43200
  66. (0) sql: Idle-Timeout := 43200
  67. (0) sql: EXPAND SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority
  68. (0) sql: --> SELECT groupname FROM radusergroup WHERE username = '447086' ORDER BY priority
  69. (0) sql: Executing select query: SELECT groupname FROM radusergroup WHERE username = '447086' ORDER BY priority
  70. (0) sql: User not found in any groups
  71. rlm_sql (sql): Released connection (1)
  72. rlm_sql (sql): Need 4 more connections to reach 10 spares
  73. rlm_sql (sql): Opening additional connection (6), 1 of 26 pending slots used
  74. rlm_sql_mysql: Starting connect to MySQL server
  75. rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket, server version 5.5.44-MariaDB-log, protocol version 10
  76. (0) [sql] = ok
  77. (0) [expiration] = noop
  78. (0) [logintime] = noop
  79. (0) pap: WARNING: Auth-Type already set. Not setting to PAP
  80. (0) [pap] = noop
  81. (0) } # authorize = ok
  82. (0) Found Auth-Type = CHAP
  83. (0) # Executing group from file /usr/local/etc/raddb/sites-enabled/default
  84. (0) Auth-Type CHAP {
  85. (0) chap: Comparing with "known good" Cleartext-Password
  86. (0) chap: CHAP user "447086" authenticated successfully
  87. (0) [chap] = ok
  88. (0) } # Auth-Type CHAP = ok
  89. (0) # Executing section post-auth from file /usr/local/etc/raddb/sites-enabled/default
  90. (0) post-auth {
  91. (0) update {
  92. (0) No attributes updated
  93. (0) } # update = noop
  94. (0) sql: EXPAND .query
  95. (0) sql: --> .query
  96. (0) sql: Using query template 'query'
  97. rlm_sql (sql): Reserved connection (2)
  98. (0) sql: EXPAND %{User-Name}
  99. (0) sql: --> 447086
  100. (0) sql: SQL-User-Name set to '447086'
  101. (0) sql: EXPAND INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '%{SQL-User-Name}', '%{%{User-Password}:-%{Chap-Password}}', '%{reply:Packet-Type}', '%S')
  102. (0) sql: --> INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '447086', '0x1c622737c4c16c82df6c53aa231acaa988', 'Access-Accept', '2017-01-11 00:31:33')
  103. (0) sql: Executing query: INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '447086', '0x1c622737c4c16c82df6c53aa231acaa988', 'Access-Accept', '2017-01-11 00:31:33')
  104. (0) sql: SQL query returned: success
  105. (0) sql: 1 record(s) updated
  106. rlm_sql (sql): Released connection (2)
  107. (0) [sql] = ok
  108. (0) [exec] = noop
  109. (0) policy remove_reply_message_if_eap {
  110. (0) if (&reply:EAP-Message && &reply:Reply-Message) {
  111. (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
  112. (0) else {
  113. (0) [noop] = noop
  114. (0) } # else = noop
  115. (0) } # policy remove_reply_message_if_eap = noop
  116. (0) } # post-auth = ok
  117. (0) Sent Access-Accept Id 12 from SERVER_IP:1812 to CLIENT_IP:19731 length 0
  118. (0) Session-Timeout = 43200
  119. (0) Idle-Timeout = 43200
  120. (0) Finished request
  121. Waking up in 4.9 seconds.
  122. Waking up in 7.0 seconds.
  123. Waking up in 14.0 seconds.
  124. (0) Cleaning up request packet ID 12 with timestamp +54
  125. Ready to process requests
Add Comment
Please, Sign In to add comment