mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-30 22:11:07 +00:00 
			
		
		
		
	* [Vendor] update go-ldap to v3.0.3 * update go-ldap to v3.2.4 Co-authored-by: techknowlogick <techknowlogick@gitea.io>
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			740 B
		
	
	
	
		
			Go
		
	
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			740 B
		
	
	
	
		
			Go
		
	
	
	
		
			Vendored
		
	
	
	
| package ldap
 | |
| 
 | |
| import (
 | |
| 	"crypto/tls"
 | |
| 	"time"
 | |
| )
 | |
| 
 | |
| // Client knows how to interact with an LDAP server
 | |
| type Client interface {
 | |
| 	Start()
 | |
| 	StartTLS(*tls.Config) error
 | |
| 	Close()
 | |
| 	SetTimeout(time.Duration)
 | |
| 
 | |
| 	Bind(username, password string) error
 | |
| 	UnauthenticatedBind(username string) error
 | |
| 	SimpleBind(*SimpleBindRequest) (*SimpleBindResult, error)
 | |
| 	ExternalBind() error
 | |
| 
 | |
| 	Add(*AddRequest) error
 | |
| 	Del(*DelRequest) error
 | |
| 	Modify(*ModifyRequest) error
 | |
| 	ModifyDN(*ModifyDNRequest) error
 | |
| 
 | |
| 	Compare(dn, attribute, value string) (bool, error)
 | |
| 	PasswordModify(*PasswordModifyRequest) (*PasswordModifyResult, error)
 | |
| 
 | |
| 	Search(*SearchRequest) (*SearchResult, error)
 | |
| 	SearchWithPaging(searchRequest *SearchRequest, pagingSize uint32) (*SearchResult, error)
 | |
| }
 |