Skip to main content

TANLock and Gateway – Onboarding Guide

Configure your Tanlocks for integration with Genea.

Ankita Chakraborty avatar
Written by Ankita Chakraborty
Updated over a month ago

TANLock Onboarding

1. Login to TANLock with Default Credentials

  1. Access the lock’s web UI using its IP address:

http://<lock-ip>
  1. Login using the default credentials:


    • name: api

    • password: lab

⚠️ After onboarding, default credentials should be restricted or replaced as per security policy.


2. Create an Integration User (Applies to All Locks)

Create a dedicated user for Genea–TANLock integration.

Navigate to - RBAC → All Managementusers → Add Managementuser

Add user name, password and roles → add


User Details

  • Username: genea-tanlock-integration

  • Password: Secure, system-generated password

  • Roles: api_rest_v1, api_snmp,api_web_v1,root ,web_ui

    Required Roles / Permissions

    Assign the following roles to ensure full integration functionality:

    1. api_rest_v1

    2. api_snmp

    3. api_web_v1

    4. root

    5. web_ui

    ✅ These roles must be identical on all locks for consistent behavior.

Integration Credential Sharing (Mandatory)

  1. Share the integration credentials with the Genea Team.

  2. The Genea Team will configure these credentials in the Genea Gateway.

  3. These credentials are used for:

    • Authentication between Genea-Gateway services and TANLock

    • Secure API communication

    • Event ingestion and remote operations

The same credentials must be configured on all locks.


3. Network Configuration (DHCP)

  1. Navigate to Settings → General

  2. Set IP Assignment to:

    • enable DHCP → Set Network

The lock must be reachable from the Genea Gateway network.


4. Time Configuration (Mandatory)

Accurate time sync is critical for:

  • Event timestamps

  • Access validation

  • Audit logs

Navigate to Settings → General

Option A – NTP Server (Recommended)

  1. Go to NTP Configuration

  2. Configure:

Interval : 5 NTP Host: <gateway-ip> OR company NTP server
  1. Save configuration → Set NTP

Option B – Manual Time Sync

  1. Manually set:

    • Year

    • Month

    • Day

    • Hour

    • Minute

    • Second

    • Time zone

  2. Set Time

    Optionally can directly ‘Sync With Browser’ without manually setting above fields.


5. Discovery & Heartbeat Configuration

  1. Navigate to SettingsDiscovery

  2. Configure: Add following details

    Target URL: http://<genea-gateway-ip>:3500/heartbeat Interval: 60 seconds HTTP Method : POST  Body Configuration- Content type (MIME) : application/json HTTP Body (limited to 256 bytes): {"name":"{{name}}","ip":"{{ip}}","mac":"{{mac}}","location":"{{location}}","version":"{{version}}","state":"{{state}}","secure":"{{secure}}","timestamp":"{{ts}}"}

  3. To save configurations click on ‘Set’


6. Event Monitoring (HTTP Push)

Enable HTTP Event Monitoring

  1. Go to:

    Settings → Event Monitoring → HTTP

  2. Enable HTTP Event Monitoring

    After enabling → set Enabled

  3. Reboot Lock to load the configuration

    Settings → Reboot → Reboot

  4. Configure HTTP Target

    1. Once the Lock is rebooted, navigate to Settings → Event Monitoring → HTTP on the lock interface.

    1. Enter the required HTTP target details

    Target Address : http://<gateway-ip>:3502/events/tanlock

    b. Save configuration - Click Set Config to apply and save the settings.


7. LDAP Configuration

Enable LDAP

  1. Navigate to:

Media → LDAP → Server Configuration

  1. Enable LDAP

  2. Reboot Lock to load the configuration

    Settings → Reboot → Reboot

  3. Do following Configuration once the lock is rebooted

Host URL : ldaps://<genea-gateway-ip>:636 User : cn=admin,dc=tanlock,dc=system Password : Password provided by genea Base DN : dc=tanlock,dc=system STARTTLS : OFF Check Certificate : ON

Save configuration

Medium Lookup

Medium Queries

Query 0   Attributes : owner   Base : dc=tanlock,dc=system   Filter : (&(cn={{medium.value}})(description=ACTIVE))   Scope : sub Query 1   Attributes : cn   Base : ou=groups,dc=tanlock,dc=system   Filter : (roleOccupant={{res[0].attr.owner}})   Scope : one Query 2   Attributes : cn   Base : cn={{name}},ou=locks,dc=tanlock,dc=system   Filter : (|(owner={{res[0].attr.owner}})(owner={{res[1].dn}}))   Scope : base Query 3   Attributes : cn   Base : {{res[0].attr.owner}}   Filter : (&(objectClass=*)(description=ACTIVE))   Scope : base

Medium Mapper

{     "uid": "{{res[3].dn}}",     "identifier": "{{medium.value}} of {{res[3].attr.cn}} as {{res[1].attr.cn}} on {{res[2].attr.cn}}",     "start": true,     "next": 0,     "login": "{{res[3].attr.cn}}" }

User Lookup

User Queries

Leave it Blank

User Mapper

{     "uid": "{{medium.uid}}",     "active": true,     "login": "{{medium.login}}" }

LDAP Certificate

  1. Navigate to:

Settings → SSL → LDAP Trustet CAs

  1. Upload the LDAP certificate provided by Genea

Apply Changes

  • Reboot the lock

    Settings → Reboot → Reboot


8. Medium Implementation

  1. Navigate to:

Settings → Medium Implementation

  1. Activate the default Card Config-

    1. 11_card_desfire

    2. 16_card_legic_prime

    3. 17_card_iclass_uid

    4. 18_card_legic_uid

    5. 19_card_uid

Apply Changes

  • Reboot the lock

    Settings → Reboot → Reboot


Gateway Deployment Steps

  1. Start by copying the latest Docker image archive to the gateway. Place tanlock-gateway-images.tar under ~/genea on the gateway machine.

  2. Load Genea Tanlock Docker images on the Gateway

    cd ~/genea docker load -i tanlock-gateway-images.tar
  3. Copy deployment files to the Gateway

    scp docker-compose.yml .env user@gateway:~/genea/
  4. Create required directories

    mkdir -p ~/genea/data ~/genea/logs
  5. Start containers

    docker compose up -d --remove-orphans
  6. Run database migrations (CRITICAL!)

    docker exec tanlock-gateway npx knex migrate:latest
  7. ⚠️ Do not skip this step — the gateway may start but fail at runtime without migrations.

  8. Verify deployment

    docker logs tanlock-gateway --tail 50 docker logs hearbeat-server --tail 50

Validation Checklist

✔ Lock is reachable via DHCP

✔ Time is correctly synced

✔ Heartbeat interval set to 60s

✔ Lock appears Online in Genea Portal (within 2 mins) if both Gateway and Lock are configured properly.

✔ HTTP events received by Gateway

✔ LDAP authentication active

Once the locks are configured, follow this article to add the locks to Genea.

If you need help setting up the locks or have any questions, contact Genea Support (acsupport@getgenea.com.)

Did this answer your question?