mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-26 21:27:40 -05:00
PLT-6700 Fixed nil pointer exception on 'ldap sync' command (#6535)
This commit is contained in:
committed by
Christopher Speller
parent
f1b317a51f
commit
14f47f569f
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user