How do I define a users password when I ingest a n...
# ingestion
b
How do I define a users password when I ingest a new user? I used to be able to log in with an ingested username and a random password in the old version of datahub. Posting the json I ingest when adding a new user currently
{ "auditHeader": null, "proposedSnapshot": { "com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot": { "urn": "urnlicorpuser:x", "aspects": [ { "com.linkedin.pegasus2avro.identity.CorpUserInfo": { "active": true, "displayName": { "string": "X" }, "email": "x@x.si", "title": { "string": "Data Engineer" }, "managerUrn": null, "departmentId": null, "departmentName": null, "firstName": "X", "lastName": "X", "fullName": { "string": "X" }, "countryCode": "SI" } } ] } }, "proposedDelta": null }
b
You used to be able to login with other usernames? Did u modify user.props previously?
This json creates a user in datahub but it has nothing to do with logging in.
b
Did u modify user.props previously?
No, I haven't. So, I have to define the login details in that file?
s
If using JAAS authentication (username/password) then you have to add credentials in that file
I used to be able to log in with an ingested username and a random password in the old version of datahub.
When you say this what version of datahub are you talking about?
b
Thank you. Really old, it was in the summer.
b
user.props can be found here https://github.com/linkedin/datahub/blob/master/datahub-frontend/conf/user.props you have to ingest users details using that json file, and put in the login+password inside user.props
plus1 1
s
b
Thank you very much
b
@brief-lizard-77958 Let me know if you have trouble getting through this - it did change sometime early summer
b
@big-carpet-38439 Thanks. Inserting login info into user.props and rebuilding worked.
g
@big-carpet-38439 I am following this thread but I am lost on the steps needs to be done to generate users and passwords. How do we have access to user.props? when I insert
docker ps
I get
b
Right ! So you need to change user.props file in the
datahub-frontend
directory, then you need to run
./gradlew datahub-frontend:build
from the home directory of the git repo, then finally you need to start in dev mode to test:
Copy code
./docker/dev.sh
👍 1
k
Hello! I was unable to locate the user.props file. I installed it on Windows 10. Should I create this file and place it in a specific folder?
I'm using UI, version 0.12.0 and integrated with teradata