diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/platform/ldap.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/platform/ldap.go b/cmd/platform/ldap.go index f578ec3e2..ef40f3692 100644 --- a/cmd/platform/ldap.go +++ b/cmd/platform/ldap.go @@ -27,6 +27,10 @@ func init() { } func ldapSyncCmdF(cmd *cobra.Command, args []string) error { + if err := initDBCommandContextCobra(cmd); err != nil { + return err + } + if ldapI := einterfaces.GetLdapInterface(); ldapI != nil { if err := ldapI.Syncronize(); err != nil { CommandPrintErrorln("ERROR: AD/LDAP Synchronization Failed") |