Skip to content

Instantly share code, notes, and snippets.

View devilkun's full-sized avatar
🍀

devilkun

🍀
View GitHub Profile
@devilkun
devilkun / addUser.sh
Created July 28, 2025 07:32 — forked from lemonlatte/addUser.sh
Login authentication from a LDAP server
#!/bin/sh
dn='dc=math,dc=nccu,dc=edu,dc=tw'
username='jim.yeh'
uid='jim.yeh'
gid='student'
cat << EOF > user_example.ldif
dn: cn=$username,ou=users,ou=login,$dn