diff options
Diffstat (limited to 'nsswitch/tests/test_idmap_rfc2307.sh')
-rwxr-xr-x | nsswitch/tests/test_idmap_rfc2307.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nsswitch/tests/test_idmap_rfc2307.sh b/nsswitch/tests/test_idmap_rfc2307.sh index d3087a171b5..cb60364016e 100755 --- a/nsswitch/tests/test_idmap_rfc2307.sh +++ b/nsswitch/tests/test_idmap_rfc2307.sh @@ -74,24 +74,24 @@ testit "add ldap group mapping record" $VALGRIND $ldbadd -H ldap://$DC_SERVER -U rm -f $PREFIX/tmpldbmodify -testit "wbinfo --name-to-sid" $wbinfo --name-to-sid "$DOMAIN\\$USERNAME" || failed=$(expr $failed + 1) -user_sid=$($wbinfo -n "$DOMAIN\\$USERNAME" | cut -d " " -f1) -echo "$DOMAIN\\$USERNAME resolved to $user_sid" +testit "wbinfo --name-to-sid" $wbinfo --name-to-sid "$DOMAIN/$USERNAME" || failed=$(expr $failed + 1) +user_sid=$($wbinfo -n "$DOMAIN/$USERNAME" | cut -d " " -f1) +echo "$DOMAIN/$USERNAME resolved to $user_sid" testit "wbinfo --sid-to-uid=$user_sid" $wbinfo --sid-to-uid=$user_sid || failed=$(expr $failed + 1) user_uid=$($wbinfo --sid-to-uid=$user_sid | cut -d " " -f1) -echo "$DOMAIN\\$USERNAME resolved to $user_uid" +echo "$DOMAIN/$USERNAME resolved to $user_uid" testit "test $user_uid -eq $USERUID" test $user_uid -eq $USERUID || failed=$(expr $failed + 1) # Not sure how to get group names with spaces to resolve through testit -#testit "wbinfo --name-to-sid" $wbinfo --name-to-sid="$DOMAIN\\$GROUPNAME" || failed=$(expr $failed + 1) -group_sid=$($wbinfo --name-to-sid="$DOMAIN\\$GROUPNAME" | cut -d " " -f1) -echo "$DOMAIN\\$GROUPNAME resolved to $group_sid" +#testit "wbinfo --name-to-sid" $wbinfo --name-to-sid="$DOMAIN/$GROUPNAME" || failed=$(expr $failed + 1) +group_sid=$($wbinfo --name-to-sid="$DOMAIN/$GROUPNAME" | cut -d " " -f1) +echo "$DOMAIN/$GROUPNAME resolved to $group_sid" testit "wbinfo --sid-to-gid=$group_sid" $wbinfo --sid-to-gid=$group_sid || failed=$(expr $failed + 1) group_gid=$($wbinfo --sid-to-gid=$group_sid | cut -d " " -f1) -echo "$DOMAIN\\$GROUPNAME resolved to $group_gid" +echo "$DOMAIN/$GROUPNAME resolved to $group_gid" testit "test $group_gid -eq $GROUPGID" test $group_gid -eq $GROUPGID || failed=$(expr $failed + 1) |