Comments (2)
Solution idea.
Background: I think the log entry logname= uid=0 euid=0 tty= ruser= rhost= user=admin
is written via: https://github.com/linux-pam/linux-pam/blob/4ce09656536911d9048519b8ee18e53353c9cae8/modules/pam_unix/support.c#L782. In this function, the rhost value is retrieved from pam_get_item(pamh, PAM_RHOST, &rhost)
.
Solution idea: If the BMCWeb server used pam_set_item(pamh, PAM_RHOST, &rhost)
after pam_start
and before pam_authenticate
, about here: https://github.com/openbmc/bmcweb/blob/master/include/pam_authenticate.hpp#L104
then PAM would log the client IP address.
That information is in the HTTP Request structure, ipAddress
field and could be passed into the pamAuthenticateUser
function.
from bmcweb.
This was tried on IBM's fork at https://github.com/ibm-openbmc/bmcweb/tree/1030/.
Please file bugs only against code in this tree. Feel free to file bugs for the ibm fork in the ibm fork.
So far as I can tell, this is working as designed, nobody has built out this feature, so this isn't a bug. Feel free to have a discussion on discord or the mailing list.
from bmcweb.
Related Issues (20)
- MetricReportDefinitions POST failed HOT 7
- How do I test the security of the web HOT 2
- IPAddresses have field's value 0.0.0.0 HOT 10
- URL arg number assert should contain 5 HOT 6
- Json content-type "application/json;charset=utf-8" without space separator is not allowed HOT 4
- Task Monitor URL doesn't match the DMTF redfish specification format. HOT 1
- Webui pages intermittently not loading, "0x0 Failed to capture connection" logged HOT 14
- can not print log in lamba HOT 2
- `Roles` should be exposed in Redfish Session object (introduced in v1.7.0) HOT 4
- Test User Account HOT 6
- $metadata returns 401 if no authentication is provided
- Redfish Protocol Validator fails for SSE request HOT 2
- Login Web Cant redirect HOT 1
- Redfish SessionService/Sessions POST returns empty string for Role HOT 2
- How to implement SimpleUpdate HTTP Pull for D-Bus interface flow? HOT 5
- bmcweb service core-dump when GET /EventService/SSE HOT 6
- Fan Health Incorrectly Set to "OK" When Unable to Read Property HOT 4
- Operator" Privilege Role Allowed to Configure Network Settings HOT 5
- Bug about redfish return long time HOT 14
- Disable certificate validation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bmcweb.