Skip to content

Commit

Permalink
Merge pull request #410 from mboudet/master
Browse files Browse the repository at this point in the history
Fix ldap sync
  • Loading branch information
mboudet authored Oct 27, 2023
2 parents f5a8429 + 994eb85 commit 9f3d3ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on: ["push", "pull_request"]
jobs:

build:

if: github.repository == 'genouest/genouestaccountmanager'
runs-on: self-hosted

steps:
- uses: actions/checkout@v1
- name: Run unit tests
Expand Down
8 changes: 4 additions & 4 deletions tools/sync_from_ldap.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ async function record_user(user){
if (cur_user.lastname != user.sn) {
go_user.lastname = user.sn;
}
if (cur_user.uidNumber != cur_uid) {
go_user.uidNumber = cur_uid;
if (cur_user.uidnumber != cur_uid) {
go_user.uidnumber = cur_uid;
}
if (cur_user.gidNumber != cur_gid) {
go_user.gidNumber = cur_gid;
if (cur_user.gidnumber != cur_gid) {
go_user.gidnumber = cur_gid;
}
if (cur_user.created_at != create_time) {
go_user.created_at = create_time;
Expand Down

0 comments on commit 9f3d3ce

Please sign in to comment.