bsh // create syllabeled passwords
function createPassword () { CNTSYLL=$1 CNTNUM=$2 test “x$1” == “x” && return 1 test “x$2” == “x” && return 1 PASS=”” YYY=( a e i o u ei au ai eu iu ui oi) ZZZ=( b c d f g h j k l m n p q r s t v w x y […]
function createPassword () { CNTSYLL=$1 CNTNUM=$2 test “x$1” == “x” && return 1 test “x$2” == “x” && return 1 PASS=”” YYY=( a e i o u ei au ai eu iu ui oi) ZZZ=( b c d f g h j k l m n p q r s t v w x y […]
Create some functions: function prepare_dialog () { # DIALOG STDOUT exec 3>&1 } function d_selectOneGender () { C_GEND_LIST=”$(getexistinggenders)” D_STRG=”” for C_GEND in $C_GEND_LIST; do D_STRG=”${D_STRG} $C_GEND Gender OFF $C_GEND” done dialog \ –backtitle “$VERSION” \ –clear \ –title “$1” \ –item-help \ –radiolist ‘Select one:’ \ $H $W $MH \ $D_STRG return $? } … […]
LDAP TIME is calculated in nanoseconds (factor 10000000) from 01/01/1601 echo $((($LDAPTIME/10000000)-11644473600)) 01/01/1601 .. 01/01/1970 in seconds: 11644473600
OBJECT2DELETE=Workstation03 ldbdel -H $SAMBA_LDB “$(ldbsearch -H $SAMBA_LDB “(sAMAccountName=$OBJECT2DELETE)” dn | grep -v ‘^#’ | head -n 1 | grep ‘dn:’ | sed ‘s|dn:\ ||’ | grep ‘DC’)”
AD Domains and Trusts domain.msc Active Directory Management admgmt.msc AD Sites and Services dssite.msc AD Users and Computers dsa.msc ADSI Edit adsiedit.msc Authorization manager azman.msc Certification Authority Management certsrv.msc Certificate Templates certtmpl.msc Cluster Administrator cluadmin.exe Computer Management compmgmt.msc Component Services comexp.msc Configure Your Server cys.exe Device Manager devmgmt.msc DHCP Management dhcpmgmt.msc Disk Defragmenter dfrg.msc Disk […]
krb5 pidSources: https://wiki.samba.org/index.php/Configuring_Winbindd_on_a_Samba_AD_DC https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Domain_Member https://wiki.samba.org/index.php/User_Home_Folders https://wiki.samba.org/index.php/Idmap_config_ad https://wiki.samba.org/index.php/Roaming_Windows_User_Profiles Strategy This machine file server (domain member server). It will serve domain users profiles, homes and other file stuff. ADDC’s IP is 10.81.100.150. This machines IP is 10.81.100.151, host name is F4 Principles Users on a domain member will be authenticated by the domain controller. This process uses […]
linux domain member – idmap ad – getent passwd not working – wbinfo -i SAMDOM\\xyzuser returns wbcGetpwnam: WBC_ERR_DOMAIN_NOT_FOUND PROBLEM: Users per default primary group “domain users” has not set gidNumber per default installation. Edit these groups props with ldbedit and add a gidNumber entry. How solved? ( credits: https://stackoverflow.com/questions/30601942/consistent-uid-and-gid-across-linux-clients-for-multiple-domain-using-autorid): wbinfo -n SAMDOM\\user1 to give you […]
/etc/default/libvirt-guests: ON_BOOT=start ON_SHUTDOWN=suspend START_DELAY=10