Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5 Risposte
5827 Visualizzazioni

How to get the MAC details of the users? Please can anyone suggest the solution or any module for this?

Avatar
Abbandona
Risposta migliore

mac address is not being sent in the request header. so this method only works in a local network.

first, install getmac package:

>> pip install getmac

from getmac import get_mac_address


ip_address = request.httprequest.environ['REMOTE_ADDR'] // get end user IP in thecontroller
mac_address = get_mac_address(ip=ip_address) // get mac_address of given ip in network

Now you can check the MAC address to be valid for the user trying to be authenticated.

Avatar
Abbandona
Risposta migliore

Hi,

Will this module helps ? https://apps.odoo.com/apps/modules/14.0/access_restriction_by_ip/

Thanks

Avatar
Abbandona
Autore

Thry are using IP address, we need MAC address, Thanks for your response.

Risposta migliore

Dear Midhun, 

did you find restrict users by using MAC Address? can you guide me how to please contact email id : mohamedashif.an@gmail.com

Avatar
Abbandona

can you guide me Midhun how to do please contact me mohamedashif.an@gmail.com

Hi did you find ?
I'm interested can you contact me please ? yacine.bensidhoum@gmail.com

Yes i do have a solution for access restriction by mac address please inbox me at ahmadinayat75@gmail.com

Risposta migliore

i need your module by Odoo V15 in Odoo.sh 

Avatar
Abbandona

Ahmad Inayat

Midhum M M

Risposta migliore

Hi,

do you have a solution about " access restriction by mac address " odoo 14


Avatar
Abbandona

Yes i do have a solution for access restriction by mac address please inbox me at ahmadinayat75@gmail.com

Post correlati Risposte Visualizzazioni Attività
1
set 23
1895
0
nov 16
4409
2
giu 24
1848
0
gen 25
1167
1
mag 24
691