func (u *UserInfoLDAPSource) DeleteGroup(groupnames []string) error {
	conn, err := u.getTargetLDAPConnection()
	if err != nil {
		log.Println(err)
		return err
	}
	defer conn.Close()

	for _, entry := range groupnames {
		groupdn, err := u.getGroupDN(conn, entry)
		if err != nil {
			log.Println(err)
			return err
		}
		DelReq := ldap.NewDelRequest(groupdn, nil)
		err = conn.Del(DelReq)
		if err != nil {
			log.Println(err)
			return err
		}

	}
	return nil
}
//deleting a Group from target ldaputil. --required
deleting a Group from target ldaputil. --required
// deleting a Group from target ldaputil . -- required
func (u *UserInfoLDAPSource) DeleteGroup(groupnames []string) error {
	conn, err := u.getTargetLDAPConnection()
	if err != nil {
		log.Println(err)
		return err
	}
	defer conn.Close()
	for _, entry := range groupnames {
		groupdn, err := u.getGroupDN(conn, entry)
		if err != nil {
			log.Println(err)
			return err
		}
		DelReq := ldap.NewDelRequest(groupdn, nil)
		err = conn.Del(DelReq)
		if err != nil {
			log.Println(err)
			return err
		}
	}
	return nil
}
func ( u * UserInfoLDAPSource ) DeleteGroup ( groupnames [ ] string ) error { conn , err := u . getTargetLDAPConnection ( ) if err != nil { log . Println ( err ) return err } defer conn . Close ( ) for _ , entry := range groupnames { groupdn , err := u . getGroupDN ( conn , entry ) if err != nil { log . Println ( err ) return err } DelReq := ldap . NewDelRequest ( groupdn , nil ) err = conn . Del ( DelReq ) if err != nil { log . Println ( err ) return err } } return nil }
deleting a Group from target ldaputil.
deleting a Group from target ldaputil .