#!/usr/bin/python3 import os # Get user details username = input('Enter username: ') firstname = input('Enter first name: ') lastname = input('Enter last name: ') email = input('Enter email: ') # Get UID custom_uid = input('Would you like to enter a custom UID? (y/N) ') if custom_uid == 'y' or custom_uid == 'Y': uid = input('Enter UID: ') else: uid = 1001 + len([file for file in os.listdir('.') if file.endswith('.ldif')]) # Password password = os.popen('tr -dc A-Za-z0-9