3
Hello guys, I want to show a message like, hello windows username for the client and get the client windows username.But with win32 functions i get the server windows username, i want the client username, i tried with javascript and it doesn't work, somehow i need to acces his active directory and i don't know how, the site will be intranet and i tried using a LDAP library and somehow it didn't work, am i doing something wrong? Now the site is on a local server, is in develop.I think the domain will be the same because it's intranet, i am not so advance with the domain also and I saw that LDAP use this a lot. I have read about token login and i researched it and still no clue for me. Just give a lead to follow and i will. Thank you guys a lot for the patience.I have found a similar question but is outdated because they asked 7 years ago.And from what i've seen in javascript you can get the user from the user login, but i don t need a login page. And from session i don't think i am able to give the windows username if it was not inputed, i need the username for errorRespondig.And cookies aren't helping too from what i have seen, i am working on a solution for a 2 or 3 weeks and did not find something useful to me.
Sorry i am new in Django.
win32api.GetUserName()
gives the username of the server side.
Thanks in advance