I'm trying to pass variable to create account in active directory, but i'm not sure how to pass it. It is creating an account in the variable name, not the value of variable.
import ldap3
conn = ldap3.Connection("172.16.251.61", "SWINTERNAL\\ad.manager", "Adm@n@ger@1", auto_bind=True)
commonname = "honda"
conn.add('cn= commonname,ou=POC,dc=SWINTERNAL,dc=LOCAL', 'User', {'givenName': 'Beatrix', 'sn': 'Young', 'departmentNumber': 'DEV', 'telephoneNumber': 1111})