forked from samba-team/samba
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shfmt -f examples/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <[email protected]> Reviewed-by: Andrew Bartlett <[email protected]> Autobuild-User(master): Andreas Schneider <[email protected]> Autobuild-Date(master): Tue Feb 22 16:20:58 UTC 2022 on sn-devel-184
- Loading branch information
1 parent
1b8b6ac
commit 3990c33
Showing
15 changed files
with
255 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#!/bin/bash | ||
|
||
nextattrib=`cat samba.schema | grep -i attributetype.*\(.*1.3.6.1.4.1.7165. | grep -v '^#' | \ | ||
awk '{print $3}' | cut -d. -f 10 | sort -n | tail -1` | ||
nextattrib=$(cat samba.schema | grep -i attributetype.*\(.*1.3.6.1.4.1.7165. | grep -v '^#' | | ||
awk '{print $3}' | cut -d. -f 10 | sort -n | tail -1) | ||
|
||
(( nextattrib += 1 )) | ||
( (nextattrib += 1)) | ||
|
||
echo "attributetype ( 1.3.6.1.4.1.7165.2.1.$nextattrib NAME ...." | ||
|
||
nextoc=`cat samba.schema | grep -i objectclass.*\(.*1.3.6.1.4.1.7165. | grep -v '^#' | \ | ||
awk '{print $3}' | cut -d. -f 10 | sort -n | tail -1` | ||
nextoc=$(cat samba.schema | grep -i objectclass.*\(.*1.3.6.1.4.1.7165. | grep -v '^#' | | ||
awk '{print $3}' | cut -d. -f 10 | sort -n | tail -1) | ||
|
||
(( nextoc += 1 )) | ||
( (nextoc += 1)) | ||
|
||
echo "objectclass ( 1.3.6.1.4.1.7165.2.2.$nextoc NAME ...." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,14 +18,12 @@ | |
# You should have received a copy of the GNU General Public License | ||
# along with AD-Bench. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
|
||
source `dirname $0`/utils.sh | ||
source $(dirname $0)/utils.sh | ||
|
||
INPUT="[email protected]%secret" | ||
echo "Principal for $INPUT is " $( get_principal $INPUT ) | ||
echo "Password for $INPUT is " $( get_password $INPUT ) | ||
echo "Realm for $INPUT is " $( get_realm $INPUT ) | ||
echo "NT_DOM for $INPUT is " $( get_nt_dom $INPUT ) | ||
|
||
echo "Principal for $INPUT is " $(get_principal $INPUT) | ||
echo "Password for $INPUT is " $(get_password $INPUT) | ||
echo "Realm for $INPUT is " $(get_realm $INPUT) | ||
echo "NT_DOM for $INPUT is " $(get_nt_dom $INPUT) | ||
|
||
echo "Padding 2: " $( pad_number 1 2 ) " 4: " $(pad_number 23 4) | ||
echo "Padding 2: " $(pad_number 1 2) " 4: " $(pad_number 23 4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.