Adam Strzelecki
7bf5deac1f
Fix #2221 LDAP username attribute must be fetched
This is fix-up for 573305f . Forgot to fetch AttributeUsername value from the
LDAP server, so the setting was effectively not working as intended.
10 years ago
Alex Myasoedov
1d4f3815a4
Fix misspelled words
10 years ago
Adam Strzelecki
d461afdc62
LDAP: Optional user name attribute specification
Consider following LDAP search query example:
(&(objectClass=Person)(|(uid=%s)(mail=%s)))
Right now on first login attempt Gogs will use the text supplied on login form
as the newly created user name. In example query above the text matches against
both e-mail or user name. So if user puts the e-mail then the new Gogs user
name will be e-mail which may be undesired.
Using optional user name attribute setting we can explicitly say we want Gogs
user name to be certain LDAP attribute eg. `uid`, so even user will use e-mail
to login 1st time, the new account will receive correct user name.
10 years ago
Unknwon
34ca19347f
Use better LDAP lib and should fix #1139
10 years ago
Unknwon
ac3cbc19e0
#1896 fatal when no needed update task
10 years ago
Sergio Benitez
8dd535a6a7
Sanitizing input to LDAP authentication module.
10 years ago
Unknwon
7b97385e1d
revert simple LDAP userDN and update example
10 years ago
Unknwon
65e1a79b68
#1637 able to skip verify for LDAP
10 years ago
Unknwon
b74f247d25
fix simple LDAP userDN
10 years ago
Sergio Benitez
66eccf3efd
Minor fixes to the LDAP module readme
10 years ago
Sergio Benitez
37490567e0
Updated the LDAP auth module README.
10 years ago
Sergio Benitez
03ef9936e9
Added LDAP simple auth support.
10 years ago
Unknwon
148121b770
#1554 check adminFilter length before LDAP search
10 years ago
Girish Ramakrishnan
0beabbda4a
Set IsAdmin using LDAP
The IsAdmin flag is set based on whether the admin filter
returned any result. The admin filter is applied with the user dn
as the search root.
In the future, we should update IsAdmin as well on each login.
Alternately, we can have a periodic sync operation.
10 years ago
Unknwon
c481b04267
work on #986 and fix a LDAP crash
10 years ago
Sergio Benitez
f5b9c58a9e
Small style fixes to the LDAP module README
10 years ago
Unknwon
4faa700874
Merge branch 'develop' of https://github.com/SergioBenitez/gogs into develop
# Conflicts:
# modules/bindata/bindata.go
10 years ago
Sergio Benitez
b43dceabe0
Updated the LDAP module readme.
10 years ago
Sergio Benitez
7014246993
Significantly enhanced LDAP support in Gogs.
10 years ago
Lauris BH
8016fb54d8
Get username, name, surname and e-mail from LDAP server
11 years ago
Joseph Crail
39c068400e
Fix spelling errors in comments.
11 years ago
Unknwon
59a7c7c5a5
Remove ldap dep
11 years ago
Tristan Storch
69e332f432
Removed trailing white spaces
Removed trailing whitespaces with
```sh
for file in `grep -r " $" * | cut -d : -f 1 | sort | uniq | grep -v " "`; do sed -i 's/[ \t]*$//' $file; done
```
and some handwork.
11 years ago
Unknwon
8dd07c0ddd
New UI merge in progress
11 years ago
Lunny Xiao
f6c94c29d5
implicated error for ldap dial
12 years ago
Sebastian Jackel
eb264a112b
Add LDAP over SSL support
12 years ago
Unknown
65e628d1f4
ignore broken tests
12 years ago
Lunny Xiao
55019bfbc5
merge all login methods
12 years ago
Lunny Xiao
4d6de6c7b9
add login name for auth type
12 years ago
Lunny Xiao
79ea34e70e
ldap support
12 years ago
juju2013
efc05ea1de
initial support for LDAP authentication/MSAD
12 years ago