repo.or.cz
/
Samba
/
gbeck.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
drs-replica-info: level_not_supported is wrong when we do support (partialy the level)
[Samba/gbeck.git]
/
source3
/
script
/
updatesmbpasswd.sh
blob
1d7e0d7332f3f72b098ab9e65f72b66650cb9072
1
#!/bin/sh
2
nawk
'BEGIN {FS=":"}
3
{
4
if(
$0
~ "^#" ) {
5
print
$0
6
} else if( (length(
$4
) == 32) && ((
$4
~ "^[0-9A-F]*$") || (
$4
~ "^[X]*$") || (
$4
~ "^[*]*$"))) {
7
print
$0
8
} else {
9
printf( "%s:%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:",
$1
,
$2
,
$3
);
10
for(i = 4; i <= NF; i++)
11
printf("%s:",
$i
)
12
printf("
\n
")
13
}
14
}'