File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -595,6 +595,16 @@ msg.msg_accrightslen = sizeof(fd);
595
595
conf .env .build_winbind = True
596
596
conf .DEFINE ('WITH_WINBIND' , '1' )
597
597
598
+ if Options .options .with_systemd_userdb :
599
+ conf .CHECK_CFG (package = 'libvarlink' , args = '"libvarlink >= 24" --cflags --libs' ,
600
+ msg = 'Checking for libvarlink >= 24' , mandatory = True )
601
+ if conf .CHECK_HEADERS ('varlink.h' , lib = 'varlink' ) and conf .CHECK_LIB ('varlink' , shlib = True ):
602
+ if conf .CHECK_FUNCS_IN ('varlink_service_new' , 'varlink' , headers = 'varlink.h' ):
603
+ conf .env .with_systemd_userdb = True
604
+ conf .DEFINE ('WITH_SYSTEMD_USERDB' , '1' )
605
+ if not conf .env .with_systemd_userdb :
606
+ conf .fatal ("libvarlink not found." )
607
+
598
608
conf .find_program ('awk' , var = 'AWK' )
599
609
600
610
conf .CHECK_HEADERS ('asm/types.h' )
Original file line number Diff line number Diff line change @@ -173,6 +173,11 @@ def options(opt):
173
173
help = ('Build with Azure Entra ID support.' ),
174
174
action = 'store_true' , dest = 'enable_himmelblau' )
175
175
176
+ opt .samba_add_onoff_option ('systemd-userdb' ,
177
+ help = ("Build winbind with support for systemd "
178
+ "User/Group Record Lookup API via "
179
+ "Varlink" ),
180
+ default = False )
176
181
177
182
def configure (conf ):
178
183
if Options .options .SAMBA_VERSION_VENDOR_SUFFIX :
You can’t perform that action at this time.
0 commit comments