Public bug reported:
VERSIONS:
ubuntu 22.04.3
libsmbclient 2:4.15.13+dfsg-0ubuntu1.5
adsysctl 0.9.2~22.04.2
adsysd 0.9.2~22.04.2
Hi when i try the command adsysctl update -m or --all i receive this
error:
Error from server: error while updating policy: cant get policies for
"ubuntuvm": failed to retrieve the list of GPO (exited with -1): signal:
killed
Failed to bind - LDAP client internal error: NT_STATUS_INVALID_PARAMETER
Failed to connect to 'ldap://addc01.domain.com' with backend 'ldap': LDAP
client internal error: NT_STATUS_INVALID_PARAMETER
Failed to open session: (1, 'LDAP client internal error:
NT_STATUS_INVALID_PARAMETER').
Result of adsysctl service cat -vvv
NFO github.com/ubuntu/adsys/internal/config/config.go:73 Init() No
configuration file: Config File "adsys" Not Found in "[/home/ubuntuvm /etc
/usr/sbin]".
We will only use the defaults, env variables or flags.
DEBUG Connecting as [[41753:876951]]
DEBUG github.com/ubuntu/adsys/internal/grpc/logconnections/logconnections.go:27
StreamServerInterceptor.func1() New request /service/Cat
DEBUG github.com/ubuntu/adsys/internal/grpc/logconnections/logconnections.go:60
loggedServerStream.RecvMsg() Requesting with parameters:
DEBUG github.com/ubuntu/adsys/internal/authorizer/authorizer.go:111
Authorizer.IsAllowedFromContext() Check if grpc request peer is authorized
DEBUG github.com/ubuntu/adsys/internal/authorizer/authorizer.go:191
Authorizer.isAllowed() Polkit call result, authorized: true
DEBUG github.com/ubuntu/adsys/internal/ad/ad.go:397 (*AD).ListActiveUsers()
[[41745:695267]] ListActiveUsers
INFO github.com/ubuntu/adsys/internal/grpc/logconnections/logconnections.go:39
StreamServerInterceptor.func1() Error sent to client: error while updating
policy: can't get policies for "ubuntuvm": failed to retrieve the list of GPO
(exited with -1): signal: killed
DEBUG github.com/ubuntu/adsys/internal/grpc/logconnections/logconnections.go:33
StreamServerInterceptor.func1.1() Request /service/UpdatePolicy done
INFO github.com/ubuntu/adsys/internal/grpc/interceptorschain/chainer.go:16
StreamServer.func1.1.1() New connection from client [[41768:773422]]
DEBUG github.com/ubuntu/adsys/internal/grpc/logconnections/logconnections.go:27
StreamServerInterceptor.func1() [[41768:773422]] New request
/service/UpdatePolicy
DEBUG github.com/ubuntu/adsys/internal/grpc/logconnections/logconnections.go:60
loggedServerStream.RecvMsg() [[41768:773422]] Requesting with parameters:
IsComputer: false, All: true, Target: , Krb5Cc:
DEBUG github.com/ubuntu/adsys/internal/ad/ad.go:571 (*AD).NormalizeTargetName()
[[41768:773422]] NormalizeTargetName for "", type "computer"
DEBUG github.com/ubuntu/adsys/internal/authorizer/authorizer.go:111
Authorizer.IsAllowedFromContext() [[41768:773422]] Check if grpc request peer
is authorized
DEBUG github.com/ubuntu/adsys/internal/authorizer/authorizer.go:150
Authorizer.isAllowed() [[41768:773422]] Authorized as being administrator
DEBUG github.com/ubuntu/adsys/internal/ad/ad.go:225 (*AD).GetPolicies()
[[41768:773422]] GetPolicies for "ubuntuvm", type "computer"
DEBUG github.com/ubuntu/adsys/internal/ad/ad.go:293 (*AD).GetPolicies()
[[41768:773422]] Getting gpo list with arguments: "--objectclass computer
ldap://addc01.domain.com ubuntuvm"
DEBUG github.com/ubuntu/adsys/internal/ad/ad.go:397 (*AD).ListActiveUsers()
[[41768:773422]] ListActiveUsers
INFO github.com/ubuntu/adsys/internal/grpc/logconnections/logconnections.go:39
StreamServerInterceptor.func1() Error sent to client: error while updating
policy: can't get policies for "ubuntuvm": failed to retrieve the list of GPO
(exited with -1): signal: killed
When I run the commands:
export KRB5CCNAME=/var/run/adsys/krb5cc/$(hostname)
adsysctl policy debug gpolist-script
chmod +x adsys-gpolist
./adsys-gpolist --objectclass computer ldap:// $(hostname)
adsys-gpolist script get this error:
Failed to bind - LDAP client internal error: NT_STATUS_INVALID_PARAMETER
Failed to connect to 'ldap://addc01.domain.com' with backend 'ldap': LDAP
client internal error: NT_STATUS_INVALID_PARAMETER
Failed to open session: (1, 'LDAP client internal error:
NT_STATUS_INVALID_PARAMETER').
and the command smbclient get this error
smbclient --option='log level=10' ///SYSVOL/ -k -c 'get
/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI /dev/fd/1' |
cat
I get this error:
smbclient --option='log level=10' ///SYSVOL/ -k -c 'get /Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI /dev/fd/1'
| cat
INFO: Current debug levels:
all: 10
tdb: 10
printdrivers: 10
lanman: 10
smb: 10
rpc_parse: 10
rpc_srv: 10
rpc_cli: 10
passdb: 10
sam: 10
auth: 10
winbind: 10
vfs: 10
idmap: 10
quota: 10
acls: 10
locking: 10
msdfs: 10
dmapi: 10
registry: 10
scavenger: 10
dns: 10
ldb: 10
tevent: 10
auth_audit: 10
auth_json_audit: 10
kerberos: 10
drs_repl: 10
smb2: 10
smb2_credits: 10
dsdb_audit: 10
dsdb_json_audit: 10
dsdb_password_a