Univention Bugzilla – Attachment 6030 Details for
Bug 35095
UCS in Active Directory domain - univention-samba
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
create_user_and_test_kerberos_smbclient.sh
create_user_and_test_kerberos_smbclient.sh (text/plain), 1.18 KB, created by
Arvid Requate
on 2014-07-31 12:20:25 CEST
(
hide
)
Description:
create_user_and_test_kerberos_smbclient.sh
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2014-07-31 12:20:25 CEST
Size:
1.18 KB
patch
obsolete
>#!/bin/bash > >test_username=user1 >test_password=Univention.99 >admin_name=Administrator >admin_pw=Univention.99 > >adds_fqdn=$(net ads lookup | sed -n 's/^Domain Controller:\t*//p') >net ads user add "$test_username" "$test_password" -U"$admin_name"%"$admin_pw" >(univention-adsearch samaccountname="$test_username" dn | sed -n 's/^DN: /dn: /p' ; echo -e "changetype: modify\nreplace: userAccountControl\nuserAccountControl: 512") | ldapmodify -h "$adds_fqdn" -U"$admin_name"%"$admin_pw" > /dev/null 2>&1 >test_output=$(univention-adsearch samaccountname="$test_username" userAccountControl | sed -n 's/^userAccountControl: //p') >if ! [ "$test_output" = "512" ]; then > echo "FAIL: Activation of user account failed" > exit 1 >fi > >kinit --password-file=<(echo -n "$test_password") "$test_username" >test_output=$(smbclient -k //$(hostname -f)/homes -c "put /etc/hosts hosts" 2>&1) >if ! [ -e "/home/$test_username/hosts" ]; then > echo "$test_output" > echo FAIL > exit 1 >else > rm "/home/$test_username/hosts" >fi > >test_output=$(smbclient -k //"$adds_fqdn"/sysvol -c "cd $(hostname -d)" 2>&1) >if ! [ $? -eq 0 ]; then > echo "$test_output" > echo "FAIL: Cannot access remote sysvol domain directory" > exit 1 >fi > >echo SUCCESS
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 35095
:
6030
|
6031
|
6035
|
6036