rejetto forum

Automatic login using macros / Automatic user recognition

0 Members and 1 Guest are viewing this topic.

Offline Tharless

  • Occasional poster
  • *
    • Posts: 24
  • Sexo, música y programación...
    • View Profile
I have at the office an "Active Directory" where we have a lot of users. First, I make in the server an user to the domain, and then using a script, I make that user in HFS. What I'm looking for?: that when some user enters at the server page, HFS using a macro detects the logged Windows user, and if that user exist in HFS, then automatically validate it, so the user doesn't have to insert the password. If the user doesn't exist, then it will ask for a password. Is that possible to do using macros?.

I did some tests, and by using IExplorer I can get the user name if I use ActiveX, but there is no way to send that back to HFS. Other browsers doesn't have this ActiveX function. Currently, I'm using a .bat (Batch) to get and save the user in a .txt file, but I can't find a way to load the name of the .txt with the function "filename" (it doesn't work). I'm trying to upload that, to make and automatic login, or looking for another way to do this. Can anyone help me. Thanks.


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 901
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
is sounds like your wanting the mac addrss of the machine to become a "logged in user"
Files i try to keep and share can be found on my google drive:

https://drive.google.com/drive/folders/1FOWi3Gqaldld6JLXvZ-biDv4RSguf0IC


Offline Tharless

  • Occasional poster
  • *
    • Posts: 24
  • Sexo, música y programación...
    • View Profile

Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 729
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
is sounds like your wanting the mac addrss of the machine to become a "logged in user"
Nice idea, since the MAC Address is unique. Now the hard part is how to recognize or "read" the MAC Address of someone who visits our HFS server webpage. I've found some interesting results, searching "How to read MAC Address with a browser" on Google (but it seems it only works for IE with ActiveX, and it doesn't work on Firefox, as you can read here). I don't see an easy solution for this. :-\

Another option would be using the so called "EverCookies", so the user log ins once, and then can be recognized by this cookie more easily. It's not 100% flawless, and requires the user to login at least once.
« Last Edit: June 03, 2016, 07:00:52 AM by LeoNeeson »
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
I did some tests, and by using IExplorer I can get the user name if I use ActiveX, but there is no way to send that back to HFS.

you can send back the information to HFS by making an ajax request with this data in it:
__USER=whatever
__PASSWORD=whatever
__AJAX=1


Offline raybob

  • Tireless poster
  • ****
    • Posts: 453
    • View Profile
    • FileSplat.com
You could also pay someone $10000 to go about a huge project where you use HFS macros to launch command line PHP which then uses the LDAP extension :P

Also I'm pretty sure that windows directory logins are only a thing when used with IE.


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 901
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
yes, most of the microsft stuff suchas ldap are "Internet Explore" specfice, but with edge and the new server core, microsft is starting to bracnh out to hte other wreb browsers. i haven't checked the newset 2016 server stuff, but iss 8 had ldap stuff for  firefox....

most ldap stuff actual inst' web based, it autheticat based for the "active directory", adn i would like to see hfs take on a windows base to incoperate domain logins.... (makes it easer then to read acounts.

but this is why i run them side by sie... and use iis core for the main site and hfs as a call scritp for other stuff....
(HFS is the reveser proxy site)
*this way i also get my php stuff
https://php.iis.net/
http://www.iis.net/learn/application-frameworks/scenario-build-a-php-website-on-iis/configure-a-php-website-on-iis
Files i try to keep and share can be found on my google drive:

https://drive.google.com/drive/folders/1FOWi3Gqaldld6JLXvZ-biDv4RSguf0IC


Offline Agret

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
LeoNeeson you are on the wrong path. Rather than asking the browser for the mac address since the server is on the same LAN as the host they can get the mac address from the socket. Just have to resolve the IP to the appropriate MAC using Windows ARP table. Write "arp -a" into cmd for an example :)


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 729
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
@Agret: It's true, "arp -a" works well, since he is working on a LAN. Sadly, Tharless has forgot to visit the forum, and I don't know if he has solved his "problem".
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline Tharless

  • Occasional poster
  • *
    • Posts: 24
  • Sexo, música y programación...
    • View Profile
Hi guys and mates,

My problem is resolved partialy, but i am study the activex for iexplorer in which I can validate the user but still I manage to not pass the hfs to take it, the problem now is how to do in Mozilla Firefox and other web browsers.


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 901
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link

Offline Tharless

  • Occasional poster
  • *
    • Posts: 24
  • Sexo, música y programación...
    • View Profile