Compare commits
No commits in common. "8d919469df9a8b148c18aad4e7e3445e77d30f0b" and "55f8badbfb09adf877d1496ca0e6c0aa4f576ae8" have entirely different histories.
8d919469df
...
55f8badbfb
13 changed files with 11 additions and 77 deletions
|
@ -7,7 +7,7 @@ pygmentsUseClasses = false
|
||||||
theme = "mainroad"
|
theme = "mainroad"
|
||||||
rssLimit = 10
|
rssLimit = 10
|
||||||
paginate = 10
|
paginate = 10
|
||||||
enableRobotsTXT = true
|
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
category = "categories"
|
category = "categories"
|
||||||
tag = "tags"
|
tag = "tags"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
title: Les annuaires LDAP
|
title: Les annuaires LDAP
|
||||||
date: 2018-09-06
|
date: 2018-09-06
|
||||||
tags: ["annuaire", "LDAP", "LDIG"]
|
tags: ["annuaire", "LDAP", "LDIG"]
|
||||||
categories: ["Installation", "Cours"]
|
categories: ["Installations", "Cours"]
|
||||||
---
|
---
|
||||||
|
|
||||||
**LDAP** pour *Lightweight Directory Access Protocol* est à l'origine un
|
**LDAP** pour *Lightweight Directory Access Protocol* est à l'origine un
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
title: TDM1 OpenLDAP - notes d'installation
|
title: TDM1 OpenLDAP - notes d'installation
|
||||||
date: 2018-09-13
|
date: 2018-09-13
|
||||||
lastmod: 2018-08-27
|
lastmod: 2018-08-27
|
||||||
categorie: ["Installations", "TD machines"]
|
category: Installations
|
||||||
tags: ['OpenLDAP', 'Apache Directory Studio', 'PAM']
|
tags: ['OpenLDAP', 'Apache Directory Studio', 'PAM']
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
title: "Installation : Postfix + LDAP"
|
title: "Installation : Postfix + LDAP"
|
||||||
categories: ["Installation", "TD machine"]
|
categories: ["Installation", "tdm"]
|
||||||
tags: ["Postfix", "LDAP", "maildir"]
|
tags: ["Postfix", "LDAP", "maildir]
|
||||||
date: 2018-09-13
|
date: 2018-09-13
|
||||||
modify: 2018-10-18
|
modify: 2018-10-18
|
||||||
---
|
---
|
||||||
|
@ -62,7 +62,7 @@ permettra à LDAP d'aller chercher les utilisateurs dans l'annuaire LDAP. C'est
|
||||||
en quelque sorte la requête pour aller checrher les informations dans
|
en quelque sorte la requête pour aller checrher les informations dans
|
||||||
l'annuaire.
|
l'annuaire.
|
||||||
|
|
||||||
```conf
|
```cf
|
||||||
server_host = ldap://ldapsrv.u-bordeaux.fr
|
server_host = ldap://ldapsrv.u-bordeaux.fr
|
||||||
search_base = dmdName=users,dc=u-bordeaux,dc=fr
|
search_base = dmdName=users,dc=u-bordeaux,dc=fr
|
||||||
bind = yes
|
bind = yes
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
---
|
---
|
||||||
title: "TDM : Les appels système"
|
title: Programmation systeme TDM 1
|
||||||
date: 2018-09-05
|
date: 2018-09-05
|
||||||
categories: ['Programmation système', 'TD machine']
|
categorie: ['Programmation système', 'TDM']
|
||||||
tags : ['appels', 'systèmes', 'Python', 'C']
|
tags : ['appels', 'systèmes', 'Python', 'C']
|
||||||
---
|
---
|
||||||
|
|
||||||
#Différence entre les strace C et Python
|
#Différence entre les strace C et Python
|
||||||
|
|
||||||
Le strace python est plus volumineux, ce aui semble normal puisque le code est
|
Le strace python est plus volumineux, ce aui semble normal puisque le code est
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
title: "TDM : Les fichiers"
|
title: "TDM : Les fichiers"
|
||||||
date: 2018-09-11
|
date: 2018-09-11
|
||||||
categories : ['Programmation système', 'TD machine']
|
categories : ['Programmation système', 'TDM']
|
||||||
---
|
---
|
||||||
|
|
||||||
Pas encore de contenu
|
Pas encore de contenu
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
Title: "TDM : Les Processus"
|
Title: "TDM : Les Processus"
|
||||||
Date: 2018-09-18
|
Date: 2018-09-18
|
||||||
Categories: ["Programmation système", "TD machine"]
|
Category: Programmation système
|
||||||
tags: ['TD Machine', 'programmation', 'C', 'processus']
|
tags: ['TD Machine', 'programmation', 'C', 'processus']
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
title : "TDM : Les processus légers"
|
title : "TDM : Les processus légers"
|
||||||
categories: ["Programmation système", "TD machine"]
|
category: Programmation système
|
||||||
date: 2018-09-25
|
date: 2018-09-25
|
||||||
---
|
---
|
||||||
[télécharger les questions](./files/tdm5.pdf)
|
[télécharger les questions](./files/tdm5.pdf)
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
---
|
---
|
||||||
title: "TDM6 : les tubes"
|
title: "TDM6 : les tubes"
|
||||||
categories: ["Programmation système", "TD machine"]
|
|
||||||
date: 2018-10-09
|
date: 2018-10-09
|
||||||
---
|
---
|
||||||
|
|
||||||
[télécharger]( files/tdm6.pdf )
|
|
||||||
|
|
||||||
## Question 1
|
|
||||||
|
|
||||||
[Voir]( src/q1.c ) mon code C
|
|
||||||
|
|
Binary file not shown.
|
@ -1,15 +0,0 @@
|
||||||
---
|
|
||||||
title: "TDM7 : les attibuts de fichiers"
|
|
||||||
date: 2018-10-16
|
|
||||||
categories: ["Programmation système", "TD machine"]
|
|
||||||
---
|
|
||||||
|
|
||||||
[Télécharger]( files/tdm7.pdf ) les questions.
|
|
||||||
|
|
||||||
## Question 1
|
|
||||||
|
|
||||||
[Voir]( src/myls.c ) mon code C
|
|
||||||
|
|
||||||
J'ai choisi d'utiliser l'operateur ternaire pour afficher les différents
|
|
||||||
éléments. S'il y a des cas ou il peut complexifier la lecture du code, je le
|
|
||||||
trouve très adapté à la situation.
|
|
|
@ -1,41 +0,0 @@
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main (int argc, char **argv){
|
|
||||||
int i;
|
|
||||||
struct stat statbuf;
|
|
||||||
for (i = 1; i < argc; i++) {
|
|
||||||
if (stat(argv[i], &statbuf) < 0) {
|
|
||||||
perror("Unable to get stats");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
printf("%s", S_ISDIR(statbuf.st_mode) ? "d" : (S_ISLNK(statbuf.st_mode) ? "l" : "_"));
|
|
||||||
printf("%s", (statbuf.st_mode & S_IRUSR) ? "r" : "-");
|
|
||||||
printf("%s", (statbuf.st_mode & S_IWUSR) ? "w" : "-");
|
|
||||||
printf("%s", (statbuf.st_mode & S_IXUSR) ? "x" : "-");
|
|
||||||
|
|
||||||
printf("%s", (statbuf.st_mode & S_IRGRP) ? "r" : "-");
|
|
||||||
printf("%s", (statbuf.st_mode & S_IWGRP) ? "w" : "-");
|
|
||||||
printf("%s", (statbuf.st_mode & S_IXGRP) ? "x" : "-");
|
|
||||||
|
|
||||||
printf("%s", (statbuf.st_mode & S_IROTH) ? "r" : "-");
|
|
||||||
printf("%s", (statbuf.st_mode & S_IWOTH) ? "w" : "-");
|
|
||||||
printf("%s", (statbuf.st_mode & S_IXOTH) ? "x" : "-");
|
|
||||||
|
|
||||||
printf("\t");
|
|
||||||
|
|
||||||
printf("%ld\t", statbuf.st_nlink);
|
|
||||||
|
|
||||||
printf("%d ", statbuf.st_uid);
|
|
||||||
printf("%d ", statbuf.st_gid);
|
|
||||||
|
|
||||||
printf("\t");
|
|
||||||
printf("%ld", statbuf.st_size);
|
|
||||||
|
|
||||||
printf("\t");
|
|
||||||
printf("%s", argv[i]);
|
|
||||||
printf("\n");
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
User-agent: *
|
|
||||||
|
|
||||||
{{range .Pages}}
|
|
||||||
Disallow: {{.RelPermalink}} {{end}}
|
|
Loading…
Add table
Add a link
Reference in a new issue