So here it is, a set of patches splitting file sdap_async_accounts and making some subsequent changes. If anyone has other ideas what could be changed, let me know.
I was in favor of splitting the file into 3, as Simo suggested: sdap_async_users.c sdap_async_groups.c sdap_async_initgroups.c
This way three basic operations are separated, but they are not separated too much (otherwise a _common.c file would have to be present, since some routines are shared by code paths in different schemas).
Thanks Jan
On Wed, 2011-06-08 at 15:40 +0200, Jan Zelený wrote:
So here it is, a set of patches splitting file sdap_async_accounts and making some subsequent changes. If anyone has other ideas what could be changed, let me know.
I was in favor of splitting the file into 3, as Simo suggested: sdap_async_users.c sdap_async_groups.c sdap_async_initgroups.c
This way three basic operations are separated, but they are not separated too much (otherwise a _common.c file would have to be present, since some routines are shared by code paths in different schemas).
As previously stated, the biggest change I wanted to see was to have the initgroups() implementations separated out. There are completely different code-paths for RFC2307, RFC2307bis(standard) and RFC2307bis(memberOf). The latter two are very difficult to keep track of in a single source file.
On Wed, 2011-06-08 at 10:05 -0400, Stephen Gallagher wrote:
On Wed, 2011-06-08 at 15:40 +0200, Jan Zelený wrote:
So here it is, a set of patches splitting file sdap_async_accounts and making some subsequent changes. If anyone has other ideas what could be changed, let me know.
I was in favor of splitting the file into 3, as Simo suggested: sdap_async_users.c sdap_async_groups.c sdap_async_initgroups.c
This way three basic operations are separated, but they are not separated too much (otherwise a _common.c file would have to be present, since some routines are shared by code paths in different schemas).
As previously stated, the biggest change I wanted to see was to have the initgroups() implementations separated out. There are completely different code-paths for RFC2307, RFC2307bis(standard) and RFC2307bis(memberOf). The latter two are very difficult to keep track of in a single source file.
I guess you are suggesting that the files should have been split into something like:
sdap_async_rfc2307.c sdap_async_rfc2307bis.c sdap_async_ipa_memberof.c
with an additional sdap_async_common.c to hold some common functions.
Just to make it clear and avoid painful rewrites and more ack/nack cycles.
Simo.
On Wed, 2011-06-08 at 10:12 -0400, Simo Sorce wrote:
On Wed, 2011-06-08 at 10:05 -0400, Stephen Gallagher wrote:
On Wed, 2011-06-08 at 15:40 +0200, Jan Zelený wrote:
So here it is, a set of patches splitting file sdap_async_accounts and making some subsequent changes. If anyone has other ideas what could be changed, let me know.
I was in favor of splitting the file into 3, as Simo suggested: sdap_async_users.c sdap_async_groups.c sdap_async_initgroups.c
This way three basic operations are separated, but they are not separated too much (otherwise a _common.c file would have to be present, since some routines are shared by code paths in different schemas).
As previously stated, the biggest change I wanted to see was to have the initgroups() implementations separated out. There are completely different code-paths for RFC2307, RFC2307bis(standard) and RFC2307bis(memberOf). The latter two are very difficult to keep track of in a single source file.
I guess you are suggesting that the files should have been split into something like:
sdap_async_rfc2307.c sdap_async_rfc2307bis.c sdap_async_ipa_memberof.c
with an additional sdap_async_common.c to hold some common functions.
Just to make it clear and avoid painful rewrites and more ack/nack cycles.
Yes, thank you for clarifying. That is exactly what I'm looking for.
So here it is, a set of patches splitting file sdap_async_accounts and making some subsequent changes. If anyone has other ideas what could be changed, let me know.
I was in favor of splitting the file into 3, as Simo suggested: sdap_async_users.c sdap_async_groups.c sdap_async_initgroups.c
This way three basic operations are separated, but they are not separated too much (otherwise a _common.c file would have to be present, since some routines are shared by code paths in different schemas).
Thanks Jan
Stephen, I rebased the patches as we discussed and I'm sending them for another round of review.
Just to remind you: last time on IRC (also in the mail) you had the objection that the initgroups operation handling should be split in three files (no other file contains three entirely different code paths for different schemas). I opposed you that those three parts are in one file, but they are now well separated (they are divided by comment lines, I can make them more visible if you wish).
I'd like to hear your opinion if this approach is ok or you insist on splitting the file to three.
Thanks Jan
So here it is, a set of patches splitting file sdap_async_accounts and making some subsequent changes. If anyone has other ideas what could be changed, let me know.
I was in favor of splitting the file into 3, as Simo suggested: sdap_async_users.c sdap_async_groups.c sdap_async_initgroups.c
This way three basic operations are separated, but they are not separated too much (otherwise a _common.c file would have to be present, since some routines are shared by code paths in different schemas).
Thanks Jan
Stephen, I rebased the patches as we discussed and I'm sending them for another round of review.
Just to remind you: last time on IRC (also in the mail) you had the objection that the initgroups operation handling should be split in three files (no other file contains three entirely different code paths for different schemas). I opposed you that those three parts are in one file, but they are now well separated (they are divided by comment lines, I can make them more visible if you wish).
I'd like to hear your opinion if this approach is ok or you insist on splitting the file to three.
Thanks Jan
These are rebased on top of my previous sysdb refactoring patches.
Jan
So here it is, a set of patches splitting file sdap_async_accounts and making some subsequent changes. If anyone has other ideas what could be changed, let me know.
I was in favor of splitting the file into 3, as Simo suggested: sdap_async_users.c sdap_async_groups.c sdap_async_initgroups.c
This way three basic operations are separated, but they are not separated too much (otherwise a _common.c file would have to be present, since some routines are shared by code paths in different schemas).
Thanks Jan
Stephen, I rebased the patches as we discussed and I'm sending them for another round of review.
Just to remind you: last time on IRC (also in the mail) you had the objection that the initgroups operation handling should be split in three files (no other file contains three entirely different code paths for different schemas). I opposed you that those three parts are in one file, but they are now well separated (they are divided by comment lines, I can make them more visible if you wish).
I'd like to hear your opinion if this approach is ok or you insist on splitting the file to three.
Thanks Jan
These are rebased on top of my previous sysdb refactoring patches.
Jan
Bug-free version now
Jan
On Mon, 2011-08-15 at 15:00 +0200, Jan Zelený wrote:
So here it is, a set of patches splitting file sdap_async_accounts and making some subsequent changes. If anyone has other ideas what could be changed, let me know.
I was in favor of splitting the file into 3, as Simo suggested: sdap_async_users.c sdap_async_groups.c sdap_async_initgroups.c
This way three basic operations are separated, but they are not separated too much (otherwise a _common.c file would have to be present, since some routines are shared by code paths in different schemas).
Thanks Jan
Stephen, I rebased the patches as we discussed and I'm sending them for another round of review.
Just to remind you: last time on IRC (also in the mail) you had the objection that the initgroups operation handling should be split in three files (no other file contains three entirely different code paths for different schemas). I opposed you that those three parts are in one file, but they are now well separated (they are divided by comment lines, I can make them more visible if you wish).
I'd like to hear your opinion if this approach is ok or you insist on splitting the file to three.
Thanks Jan
These are rebased on top of my previous sysdb refactoring patches.
Jan
Bug-free version now
Jan
Ack and pushed to master.
sssd-devel@lists.fedorahosted.org