IBM BS029ML Self Help Guide - Page 139

WMM retrieves group membership information, Server authentication code. With WMMUR

Page 139 highlights

... [8/3/07 11:27:54:562 EDT] 0000003f Authenticatio 1 com.ibm.wps.services.authentication.AuthenticationServiceImpl wasAuthentication (1) new LoginContext [8/3/07 11:27:54:562 EDT] 0000003f Authenticatio 1 com.ibm.wps.services.authentication.AuthenticationServiceImpl wasAuthentication (2) lc.login The first entry identified the engine command "SessionValidator" entry point, and the second gave the Login portlet fields "user ID" and "password". Then the call "lc.login" in "services.authentication" indicates that Portal calls underlie the WebSphere Application Server authentication code. With WMMUR, the WebSphere Application Server authentication code would call the WMM Custom User Registry module to authenticate the user by finding the user and checking the password, and then return the user, as shown Example 4-13. Example 4-13 Portal login log showing WMMUR authenticates the user "testuser" [8/3/07 11:27:54:656 EDT] 0000003f WMM Trace Log < com.ibm.ws.wmm.MemberRepositoryManager API: getMember(MemberIdentifier memberId, StringSet attributeNames, String context) Exit memberType:0, memberIdentifier:[uid=wpsadmin,ou=people,ou=dept,o=acme.com / 87d99d40-1f62-102b-8d53-bdbac147b8f0], parentMemberIdentifier:[ou=people,ou=dept,o=acme.com / ou=people,ou=dept,o=acme.com] {sn=sn:Admin, cn=cn:wpsadmin, ibm-primaryEmail=ibm-primaryEmail:[email protected], uid=uid:wpsadmin, givenName=givenName:wps, preferredLanguage=preferredLanguage:en} Here WMM returned the DN of the user "wpsadmin" with other attributes. After WMM returned the user, PUMA will then report that the user is logged in after a few checking steps, as shown in Example 4-14. Example 4-14 Portal log shows a user is logged in and gives the user DN [8/3/07 11:27:54:688 EDT] 0000003f LoginUser 1 com.ibm.wps.engine.commands.LoginUser execute User is logged in: uid=wpsadmin,ou=people,ou=dept,o=acme.com The entry "User is logged in" indicates that the authentication phase is over. WMM retrieves group membership information Next, PUMA calls WMM to retrieve the user's group membership info, as shown in Example 4-15. Example 4-15 WMM returned the groups a user belongs to [8/3/07 11:27:54:719 EDT] 00000040 DefaultURMana > com.ibm.wps.services.puma.DefaultURManager findNestedGroupByUser user= id: uid=wpsadmin,ou=people,ou=dept,o=acme.com attributeSubset: [sn, cn, ibm-primaryEmail, uid, givenName, preferredLanguage] memberIdentifier: [uid=wpsadmin,ou=people,ou=dept,o=acme.com / 87d99d40-1f62-102b-8d53-bdbac147b8f0] attributes: {sn=sn:Admin, cn=cn:wpsadmin, ibm-primaryEmail=ibm-primaryEmail:[email protected], uid=uid:wpsadmin, givenName=givenName:wps, preferredLanguage=preferredLanguage:en} Chapter 4. WebSphere Portal security 125

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242

Chapter 4. WebSphere Portal security
125
...
[8/3/07 11:27:54:562 EDT] 0000003f Authenticatio 1
com.ibm.wps.services.authentication.AuthenticationServiceImpl wasAuthentication
(1) new LoginContext
[8/3/07 11:27:54:562 EDT] 0000003f Authenticatio 1
com.ibm.wps.services.authentication.AuthenticationServiceImpl wasAuthentication
(2) lc.login
The first entry identified the engine command “SessionValidator” entry point, and the second
gave the Login portlet fields “user ID” and “password”. Then the call “lc.login” in
“services.authentication” indicates that Portal calls underlie the WebSphere Application
Server authentication code. With WMMUR, the WebSphere Application Server authentication
code would call the WMM Custom User Registry module to authenticate the user by finding
the user and checking the password, and then return the user, as shown Example 4-13.
Example 4-13
Portal login log showing WMMUR authenticates the user “testuser”
[8/3/07 11:27:54:656 EDT] 0000003f WMM Trace Log <
com.ibm.ws.wmm.MemberRepositoryManager API: getMember(MemberIdentifier memberId,
StringSet attributeNames, String context) Exit
memberType:0, memberIdentifier:[uid=wpsadmin,ou=people,ou=dept,o=acme.com /
87d99d40-1f62-102b-8d53-bdbac147b8f0],
parentMemberIdentifier:[ou=people,ou=dept,o=acme.com /
ou=people,ou=dept,o=acme.com]
{sn=sn:Admin, cn=cn:wpsadmin, ibm-primaryEmail=ibm-primaryEmail:[email protected],
uid=uid:wpsadmin, givenName=givenName:wps, preferredLanguage=preferredLanguage:en}
Here WMM returned the DN of the user “wpsadmin” with other attributes. After WMM
returned the user, PUMA will then report that the user is logged in after a few checking steps,
as shown in Example 4-14.
Example 4-14
Portal log shows a user is logged in and gives the user DN
[8/3/07 11:27:54:688 EDT] 0000003f LoginUser
1
com.ibm.wps.engine.commands.LoginUser execute User is logged in:
uid=wpsadmin,ou=people,ou=dept,o=acme.com
The entry “User is logged in” indicates that the authentication phase is over.
WMM retrieves group membership information
Next, PUMA calls WMM to retrieve the user’s group membership info, as shown in
Example 4-15.
Example 4-15
WMM returned the groups a user belongs to
[8/3/07 11:27:54:719 EDT] 00000040 DefaultURMana >
com.ibm.wps.services.puma.DefaultURManager findNestedGroupByUser user=
id: uid=wpsadmin,ou=people,ou=dept,o=acme.com
attributeSubset: [sn, cn, ibm-primaryEmail, uid, givenName, preferredLanguage]
memberIdentifier: [uid=wpsadmin,ou=people,ou=dept,o=acme.com /
87d99d40-1f62-102b-8d53-bdbac147b8f0]
attributes: {sn=sn:Admin, cn=cn:wpsadmin,
ibm-primaryEmail=ibm-primaryEmail:[email protected], uid=uid:wpsadmin,
givenName=givenName:wps, preferredLanguage=preferredLanguage:en}