PLT-6700 Fixed nil pointer exception on 'ldap sync' command (#6535)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
f1b317a51f
Коммит
14f47f569f
@@ -27,6 +27,10 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func ldapSyncCmdF(cmd *cobra.Command, args []string) error {
|
func ldapSyncCmdF(cmd *cobra.Command, args []string) error {
|
||||||
|
if err := initDBCommandContextCobra(cmd); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if ldapI := einterfaces.GetLdapInterface(); ldapI != nil {
|
if ldapI := einterfaces.GetLdapInterface(); ldapI != nil {
|
||||||
if err := ldapI.Syncronize(); err != nil {
|
if err := ldapI.Syncronize(); err != nil {
|
||||||
CommandPrintErrorln("ERROR: AD/LDAP Synchronization Failed")
|
CommandPrintErrorln("ERROR: AD/LDAP Synchronization Failed")
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user